Docs · Guide

AtomCode on any model

AtomCode is a Rust terminal coding agent on AtomGit (atomgit.com/atomgit_atomcode/atomcode). Its models live in config.toml: a [models."…"] table names a [provider_accounts.…] table, the shape AtomCode's own CodingPlan sign-in writes since 5.0.7. packinggoods writes the same shape, a packinggoods account and one table per model, so AtomCode can use any model you have in packinggoods: DeepSeek, GLM, Kimi, Qwen, GPT or a ChatGPT subscription.

Set up AtomCode

  1. Open packinggoods's Agents pageFind the AtomCode row. Its list has the models you set up in AtomCode yourself, and the ones via packinggoods.
  2. Pick a packinggoods modelpackinggoods writes the account and model tables and points default_provider and default_model at your pick; with both set, AtomCode goes by default_model.
  3. Restart atomcodeAtomCode reads its settings at start-up, so reopen any running session.
Terminal
packinggoods atomcode deepseek/deepseek-v4-pro
packinggoods atomcode effort high

What packinggoods writes

AtomCode's folder is ATOMCODE_HOME (an absolute path), else ~/.atomcode. An AtomCode in WSL uses Linux's ~/.atomcode, with the gateway as the distro reaches it. packinggoods writes:

Terminal
# ~/.atomcode/config.toml
default_provider = "packinggoods/deepseek/deepseek-v4-pro"
default_model = "packinggoods/deepseek/deepseek-v4-pro"

[provider_accounts."packinggoods"]
provider = "openai-compatible"
base_url = "http://127.0.0.1:3425/v1"
api_key = "…"

[models."packinggoods/deepseek/deepseek-v4-pro"]
account = "packinggoods"
model = "deepseek/deepseek-v4-pro"
context_window = …
max_tokens = …
supports_vision = false
reasoning_effort_levels = ["…"]

The account uses openai-compatible, AtomCode's documented preset for a custom endpoint, at packinggoods's gateway /v1, with a key packinggoods issues to AtomCode alone. A model table's key is packinggoods/<provider>/<model>, and its model goes to the gateway as written. Each carries the context window (AtomCode compacts as it nears it; 128000 when packinggoods doesn't know it), the output limit (never above the window), image support and the effort levels on offer. When packinggoods's models change, packinggoods rewrites its own tables; your own model tables and legacy providers.* entries are left alone.

Requests are Chat Completions with Bearer auth and a User-Agent of atomcode/<version>; the key is AtomCode's own, so packinggoods knows a request is AtomCode's even when the header is changed.

Effort

Effort is the current model table's reasoning_effort, sent with every request to it and kept per model. packinggoods picks none for you, so the vendor's default stands until you do. Only the levels that model supports (some of low, medium, high, xhigh, max) are offered.

When it takes effect

AtomCode reads its settings at start-up. While atomcode is running, packinggoods tells you to restart open atomcode sessions.

Switching back

Switching back removes packinggoods's account and model tables and puts back the default_provider and default_model you had before, where AtomCode still has that model (otherwise they go). Picking one of your own AtomCode models in packinggoods also removes packinggoods's tables.

Terminal
packinggoods atomcode default

FAQ

How do I use DeepSeek, GLM or a ChatGPT subscription in AtomCode?

On packinggoods's Agents page, pick a via-packinggoods model for AtomCode. packinggoods adds [provider_accounts."packinggoods"] and one [models."packinggoods/…"] table per model to ~/.atomcode/config.toml and points the defaults at your pick.

What context window does AtomCode get?

packinggoods writes each model's context_window, or 128000 when it doesn't know it. AtomCode compacts as it nears the window.

I changed it and AtomCode didn't notice. Why?

AtomCode reads its settings at start-up. Restart the open atomcode sessions.

Do my own defaults come back when I switch back?

Yes. packinggoods stashes default_provider and default_model when it steps in and puts them back when it steps out, where AtomCode still has that model.

More agents on the same models: Reasonix Studio on any model, jcode on any model, Crush on any model and Shelley on any model. Something fails? See Fixing common errors, or ask on Discord.