Docs · Guide
jcode on any model
jcode (1jehuang/jcode) is a coding agent in Rust that keeps its settings in config.toml. A provider of your own is a named profile, [providers.<name>], as jcode provider add writes it. packinggoods adds itself as the profile packinggoods, at the local gateway, with every packinggoods model listed, and starts jcode on the model you pick. So jcode runs on any model you have in packinggoods: DeepSeek, GLM, Kimi, Qwen, an OpenAI or Anthropic key, or a ChatGPT or Copilot subscription.
Set up jcode
- Add a provider in packinggoodsAdd an API key on the Providers page, or sign in to a subscription.
- Pick a model on jcode's rowWith jcode installed, packinggoods's Agents page has a jcode row; pick a model.
- Start jcodeA new jcode starts on that model; restart a session that is already open.
packinggoods jcode deepseek/deepseek-v4-pro jcode # /model lists every packinggoods model, /effort its levels
What packinggoods writes
jcode's folder is $JCODE_HOME, else ~/.jcode. In its config.toml packinggoods writes [providers.packinggoods]: type = "openai-compatible" (jcode's Chat Completions client), base_url at the gateway's /v1, an api_key naming jcode, and requires_api_key = true. That last one is there because jcode takes a gateway on loopback as needing no key and then sends none, and the key is how the gateway knows the request is jcode's. It then sets default_provider and default_model in [provider] to packinggoods and the model you pick.
# ~/.jcode/config.toml
[provider]
default_provider = "packinggoods"
default_model = "deepseek/deepseek-v4-pro"
[providers.packinggoods]
type = "openai-compatible"
base_url = "http://127.0.0.1:3425/v1"
api_key = "…"
requires_api_key = true
models = [
{ id = "deepseek/deepseek-v4-pro", context_window = …, input = ["text"], reasoning = true },
…
]/model and /effort
Each of packinggoods's models is an entry in models, so jcode's /model picker lists them all and switches between them. Each entry carries the context window (128K when packinggoods doesn't know it; jcode would take 200K) and whether it takes images; a model with effort levels gets reasoning = true, so jcode's /effort offers them. A reasoning_effort you set on one of packinggoods's models stays while the model has that level. When packinggoods's models change, packinggoods updates the list.
When it takes effect
jcode reads its settings at start-up, so restart an open jcode session to use a new model or list; packinggoods says so while jcode is running.
Your own settings
The profile and model [provider] named before are stashed and put back when packinggoods steps out. Every other key of the file is yours and stays as written, your own keys in packinggoods's profile too (headers, extra_body, a model's reasoning_effort). A config.toml that doesn't parse is an error and left as it is, never taken as empty. When jcode saves its settings itself it writes the models as [[providers.packinggoods.models]] tables; packinggoods folds them back into one array on its next write.
Switching back
Set the row back to default in packinggoods: when jcode still starts on packinggoods, packinggoods puts [provider] back as it was; a pick you made in jcode since is yours and stands. Then the whole [providers.packinggoods] goes, with your own keys in it. Or pick one of jcode's own models, and packinggoods sets default_model to it.
packinggoods jcode default
FAQ
Can jcode use DeepSeek, GLM, Kimi or Qwen?
Yes. packinggoods writes an openai-compatible [providers.packinggoods] profile into jcode's config.toml at the local gateway, and starts jcode on the model you pick.
Can I switch packinggoods's models in jcode's /model?
Yes. Every packinggoods model is in the packinggoods profile's models, so /model lists and switches them; a model with effort levels offers them in /effort.
Why didn't jcode change after I picked a model?
jcode reads its settings at start-up. Restart the open jcode session.
Do my settings stay after switching back?
Yes. packinggoods removes only [providers.packinggoods], and puts [provider] back when jcode still starts on packinggoods; every other key stays as written.
More agents on the same models: Crush on any model, Models in OpenCode, Goose on any model and Reasonix Studio on any model. Something fails? See Fixing common errors, or ask on Discord.