dyno lab DOCUMENTATIONGitHub ↗

Claude Code and Codex on your own models

Run Claude Code or Codex on a model you've downloaded in Dyno. The model answers on your Mac instead of Anthropic's or OpenAI's servers. The tools themselves may still contact their makers for sign-in, updates or usage data, depending on how you've set them up; dyno launch turns off Claude Code's optional traffic.

dyno launch claude --model qwen3.8-27b
dyno launch codex --model qwen3.8-27b

Dyno's model server speaks each tool's own API, so there's no proxy to install and no config file to edit.

Before you start

  1. A model. Download one in Discover. A 27B model or larger works best: we tested Qwen3.8-27B (MLX, 4-bit). An 8B model answers simple questions and uses the tools, but it gets lost on multi-step tasks.
  2. The tool. Install it if you haven't:
    • Claude Code: npm install -g @anthropic-ai/claude-code
    • Codex: npm install -g @openai/codex
  3. The dyno command. Dyno adds it when you open the app, so it works in a new Terminal window. If you have Homebrew, it goes in /opt/homebrew/bin with no password. Otherwise Dyno asks once to add /usr/local/bin/dyno, and macOS asks for your password; choose Not Now and you can do it later in Router → Install the dyno command…. If you move or update Dyno, the command follows it. Dyno never replaces another program called dyno. If you installed Dyno's Python package with pip, you already have the command.

The Router tab shows these commands for the model you pick, with a Copy button for each.

Run it

dyno models

This lists the models you've downloaded, with their size, context window and the port serving them, if any.

dyno launch claude --model qwen3.8-27b

--model takes the model's full name (lmstudio-community/Qwen3.8-27B-MLX-4bit) or any part of it that matches only one model. Dyno tells you if a name matches several.

dyno models lists GGUF files too: the ones you downloaded in Models → GGUF (in ~/.mlx-dyno/gguf) and GGUF repositories in the Hugging Face cache, named by repository and file (Qwen/Qwen3-0.6B-GGUF/Qwen3-0.6B-Q8_0.gguf). dyno launch serves those with the llama.cpp build in the app, on the GPU, with the model's own context up to 65,536 tokens. Speculative decoding is for MLX models only. A downloaded model that this runtime can't load (a speech or vision model, or a language model newer than this Dyno) is listed with the reason, and dyno launch refuses it; in dyno models --json it has unsupported set to its model type.

dyno launch then:

  1. Uses the model if it's already running in a Dyno server, or starts it on a free port between 8970 and 8979, in serve-only mode. Loading takes a moment. It then says whether speculative decoding is on, and if not, why.
  2. Starts the tool pointed at it. Every model the tool would use, including Claude Code's background model and subagents, is the one you chose. The tool's context window is set to the model's own.
  3. Stops the model it started when you quit the tool, or close the terminal. Add --keep to leave it running.

Anything after -- goes to the tool:

dyno launch claude --model qwen3.8-27b -- -p "The tests fail. Fix them."
dyno launch codex --model qwen3.8-27b -- exec "The tests fail. Fix them."

Speed: serve-only mode

A Dyno model server runs in one of two modes:

What makes Claude Code fast or slow on your own model, measured with Qwen3.8-27B 4-bit on an M5 Max:

Reply speed Each later turn starts after
No drafter, several requests at once (what dyno launch did before) 20 tok/s 1–3 s
DFlash2 drafter, before this change 50–100 tok/s 21 s (the whole prompt read again)
Serve only with the DFlash2 drafter 45–120 tok/s 0.6–2.3 s

Permissions: skipping the prompts, and why auto mode doesn't work

Claude Code asks before it runs a command or edits a file. To let it work without asking:

dyno launch claude --model qwen3.8-27b -- --dangerously-skip-permissions

Every command and edit then runs straight away, so start it in a git worktree or a throwaway copy of your project, not in a folder with work you can't lose. A local model makes more mistakes than Claude does, and nothing stops a wrong rm or git reset. Claude Code refuses this mode when run as root or with sudo. To keep asking but accept file edits without a prompt, press Shift+Tab in Claude Code to switch to accept edits.

Auto mode doesn't work with your own model. Claude Code's auto mode approves safe actions on its own. It does that by sending each action it isn't sure about to a separate classifier model, and that classifier must be a Claude model: auto mode is supported only on Claude models. On a model served by Dyno it is either not offered in the Shift+Tab cycle, or its checks fail and Claude Code denies every action it checks. Use the normal prompts, accept edits, or the command above.

What we saw with Qwen3.8-27B on an M5 Max: given a small project with a failing test, Claude Code ran the test, found the bug, fixed it and reran the test in 74 seconds, including loading the model. Codex did the same in 52 seconds.

Both tools can search the web while they run on your model. Claude Code's WebSearch and Codex's web search normally run on Anthropic's or OpenAI's servers. With Dyno, Dyno runs them:

The Web access switch in Models (dyno serve --web) isn't needed for this. It's for apps that bring no tools of their own, and Claude Code and Codex always bring theirs.

Search queries leave your Mac: they go to the search engines (SearXNG) or to the provider you chose. See Dyno's assistant for what that means.

Without dyno launch

Any Dyno model server (dyno serve, or a model started in Models) answers both APIs, on the same port as its OpenAI API:

API Path Used by
Anthropic Messages /v1/messages, /v1/messages/count_tokens Claude Code, Anthropic SDKs
OpenAI Responses /v1/responses Codex, OpenAI SDKs
OpenAI Chat Completions /v1/chat/completions everything else

To point Claude Code at a model running on port 8971 yourself:

ANTHROPIC_BASE_URL=http://127.0.0.1:8971 ANTHROPIC_AUTH_TOKEN=dyno claude --model Qwen3.8-27B-MLX-4bit

And Codex:

codex -c model_provider=dyno -c 'model_providers.dyno.name="Dyno"' \
  -c 'model_providers.dyno.base_url="http://127.0.0.1:8971/v1"' \
  -c 'model_providers.dyno.wire_api="responses"' -m Qwen3.8-27B-MLX-4bit

The model name can be anything the server doesn't list (Claude Code asks for claude-… names): the server then uses the model it's serving, and never downloads one.

Limits