Docs

Claude Code

Run Claude Code on Odin v1 and Odin Flash as a separate claudeodin command, next to your normal claude, or with a few lines in settings.json. AI agents setting it up for a user should follow the Install with an AI agent steps.

Claude Code talks the Anthropic Messages format, so it works with InterOdin unchanged. Point it at the API origin, give it your key, and set every model slot to odin-v1. The block below also switches off the Anthropic-only extras that cause most gateway errors.

Install with an AI agent

Give this page's link to your coding agent (Claude Code, Codex, Cursor or another) and ask it to set up InterOdin. The steps below are written for the agent. They need no flags: the defaults are what you want.

Steps for the agent:

  1. Check that Node 18 or newer is installed: node -v. If it is missing or older, ask your user to install Node from nodejs.org first.
  2. Check that Claude Code is installed: claude --version. If it is not, install it: npm install -g @anthropic-ai/claude-code.
  3. Ask your user for their InterOdin API key. It starts with io-sk- and is created in the console. Pass it to the script in the INTERODIN_API_KEY environment variable, as below. Do not pass it with --key, which leaves it in the shell history, and do not write it into any file yourself.
  4. Download and run the setup script with no flags. On macOS, Linux or Git Bash:
curl -fsSL https://docs.interodin.com/claude-code-setup.mjs -o claude-code-setup.mjs
INTERODIN_API_KEY='io-sk-...' node claude-code-setup.mjs

On Windows PowerShell (use curl.exe: plain curl there is a different command):

curl.exe -fsSL https://docs.interodin.com/claude-code-setup.mjs -o claude-code-setup.mjs
$env:INTERODIN_API_KEY='io-sk-...'; node claude-code-setup.mjs; Remove-Item Env:INTERODIN_API_KEY
  1. Check that the output says Done. and that the key check lists the Odin models. If it prints a Note: (for example an ANTHROPIC_API_KEY in the shell), follow it.
  2. Check that the new command is found: command -v claudeodin (PowerShell: Get-Command claudeodin). If it is not, the script printed which folder to add to the PATH. Add it, and tell your user to open a new terminal.
  3. Tell your user: setup is done, start it with claudeodin, it runs Odin v1 with permission prompts off (it runs commands and edits files without asking), and node claude-code-setup.mjs delete undoes everything.

The defaults are: a separate claudeodin command (your normal claude is unchanged), Odin v1 for the main work and Odin Flash for background tasks, permission prompts off (bypassPermissions mode, and the launcher starts Claude Code with --dangerously-skip-permissions), and the first-start screens already done, so claudeodin opens straight to the prompt.

Quick start

The setup script adds a separate claudeodin command: the same Claude Code, running on Odin models with your InterOdin key. Your normal claude is not touched and keeps using your Claude account, so you can use both side by side. This is the recommended way.

claudeodin keeps its settings, sessions and history in its own folder, ~/.claude-odin. The script writes the settings below there, puts the claudeodin launcher next to claude (or in ~/.local/bin, and tells you if that folder needs adding to your PATH), and asks for your key with the input hidden.

  1. Create an API key in the console (it starts with io-sk-).
  2. Download the setup script, then run it with Node 18 or newer:
curl -fsSL https://docs.interodin.com/claude-code-setup.mjs -o claude-code-setup.mjs
node claude-code-setup.mjs
  1. Run claudeodin. It opens straight to the prompt: no login screen (the key is already set), no theme question (the script marks the first-start screens as done) and no permission prompts.

Permission prompts are off by default. The script sets Claude Code's bypassPermissions mode and the launcher starts Claude Code with --dangerously-skip-permissions, so claudeodin runs shell commands and edits files without asking first. To keep the prompts, run node claude-code-setup.mjs --ask-permissions instead (see the warning below).

Prefer to make your normal claude use InterOdin instead, with no separate command? Run node claude-code-setup.mjs --replace-claude. It writes the same settings into ~/.claude/settings.json, keeping your other settings and backing up the old file first.

The script then checks the key for free (it lists the models the key may use; --no-check skips this) and warns about the usual conflicts: an ANTHROPIC_API_KEY in your shell or a signed-in Claude.ai account. To undo everything later, run node claude-code-setup.mjs delete (see Remove InterOdin and go back to normal). The script is short and has no dependencies, so you can read it before running it. Prefer to do it by hand? The next section shows the exact settings it writes, and Add claudeodin by hand shows the launcher.

Permission prompts are off: use a throwaway machine

The setup script writes "permissions": { "defaultMode": "bypassPermissions" }, the same as starting Claude Code with --dangerously-skip-permissions, plus "skipDangerousModePermissionPrompt": true so the first start does not stop to ask you to accept that mode. With prompts off, the model can run any command and change or delete any file you can, with nothing asking first. Odin v1 answers without refusing, so there is no brake on the model side either. Only use it in a throwaway project, a container or a VM, not on a machine that holds credentials or work you can't lose.

To get the prompts back, run the script again with --ask-permissions (it rewrites the launcher without the flag), or remove the setup with node claude-code-setup.mjs delete. With --replace-claude or the settings below, use claude in place of claudeodin.

Configure settings.json

Add these to ~/.claude/settings.json, which applies to all your projects. Or put the env block in .claude/settings.local.json in one project (the modelPicker block only works in ~/.claude/settings.json).

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.interodin.com",
    "ANTHROPIC_AUTH_TOKEN": "io-sk-your-key",
    "ANTHROPIC_MODEL": "odin-v1[1m]",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "odin-v1[1m]",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "odin-v1[1m]",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "odin-flash",
    "CLAUDE_CODE_SUBAGENT_MODEL": "odin-v1[1m]",
    "CLAUDE_CODE_MAX_CONTEXT_TOKENS": "1000000",
    "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1",
    "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
    "ENABLE_CLAUDEAI_MCP_SERVERS": "false"
  },
  "permissions": {
    "defaultMode": "bypassPermissions"
  },
  "skipDangerousModePermissionPrompt": true,
  "modelPicker": {
    "replaceBuiltInOptions": true,
    "options": [
      { "model": "odin-v1[1m]", "label": "Odin v1", "description": "Most capable, 1M context" },
      { "model": "odin-flash", "label": "Odin Flash", "description": "Fast and cheaper" }
    ]
  }
}

Then start claude as usual.

VariableWhy
ANTHROPIC_BASE_URLThe API origin, without /v1. Claude Code appends /v1/messages.
ANTHROPIC_AUTH_TOKENYour io-sk- key, sent as Authorization: Bearer.
ANTHROPIC_DEFAULT_OPUS_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL, ANTHROPIC_DEFAULT_HAIKU_MODELClaude Code picks different model slots for the main loop, subagents and quick background tasks such as titles and summaries. Mapping every slot to an InterOdin model means no call ever asks for a model that doesn't exist, which would fail with model_not_found. The Haiku slot (background tasks) uses the faster odin-flash.
ANTHROPIC_MODELThe model for the main conversation. Without it Claude Code starts on its own default (a Claude model name), which InterOdin doesn't serve.
[1m] after odin-v1Tells Claude Code that Odin v1 has a 1M-token context window, so auto-compaction triggers at the right time. Claude Code removes the suffix before it calls the API.
CLAUDE_CODE_MAX_CONTEXT_TOKENSThe window for odin-flash: 1,000,000 of its 1,048,576 tokens, leaving room for the reply. It only applies to a model without [1m], so Odin v1 keeps its 1M. Claude Code may print a startup warning about a window above 200K; that is expected.
modelPickerThe /model menu lists Odin v1 and Odin Flash instead of Claude models that InterOdin doesn't serve. Needs Claude Code 2.1.242 or later; older versions ignore it, and you can still switch with /model odin-flash.
CLAUDE_CODE_SUBAGENT_MODELThe model for subagents (Task tool). Same reason.
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETASStops Claude Code sending pre-release request fields and anthropic-beta values that only Anthropic's own API understands. Without it, some upstream builds answer with 400 Extra inputs are not permitted.
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICStops Claude Code's background calls to Anthropic (telemetry, version checks). It also turns off Claude Code's auto-update, so update it yourself from time to time. Safe to leave out.
permissions.defaultModebypassPermissions turns the permission prompts off, as the setup script does by default. Leave the permissions block out to keep the prompts. Read the warning above first.
skipDangerousModePermissionPromptSkips the one-time dialog Claude Code shows before it first runs in bypassPermissions mode. Leave it out together with the permissions block.
ENABLE_CLAUDEAI_MCP_SERVERSIf you are also signed in to claude.ai, Claude Code tries to load your claude.ai connectors (MCP servers) on startup, and they fail when every request goes to InterOdin. Setting this to false skips them.

Don't commit a settings file that contains your key. For a shared project, keep the key in .claude/settings.local.json, which is git-ignored, or in your shell environment.

Or use environment variables

The same variables work from your shell profile:

export ANTHROPIC_BASE_URL="https://api.interodin.com"
export ANTHROPIC_AUTH_TOKEN="io-sk-your-key"
export ANTHROPIC_MODEL="odin-v1[1m]"
export ANTHROPIC_DEFAULT_OPUS_MODEL="odin-v1[1m]"
export ANTHROPIC_DEFAULT_SONNET_MODEL="odin-v1[1m]"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="odin-flash"
export CLAUDE_CODE_SUBAGENT_MODEL="odin-v1[1m]"
export CLAUDE_CODE_MAX_CONTEXT_TOKENS="1000000"
export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS="1"
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC="1"
export ENABLE_CLAUDEAI_MCP_SERVERS="false"
unset ANTHROPIC_API_KEY

Add claudeodin by hand

The script's launcher sets one variable, CLAUDE_CONFIG_DIR, so Claude Code reads its settings from ~/.claude-odin instead of ~/.claude, and starts Claude Code with --dangerously-skip-permissions (leave the flag out to keep the prompts). To build it yourself, put the settings.json above in ~/.claude-odin/settings.json, then create the launcher in a folder on your PATH:

macOS / Linux (~/.local/bin/claudeodin, then chmod +x ~/.local/bin/claudeodin):

#!/bin/sh
CLAUDE_CONFIG_DIR="$HOME/.claude-odin" exec claude --dangerously-skip-permissions "$@"

Windows (claudeodin.cmd, in the same folder as claude.cmd):

@echo off
setlocal
set "CLAUDE_CONFIG_DIR=%UserProfile%\.claude-odin"
set "ClaudeExe="
for %%E in (exe cmd) do if not defined ClaudeExe for %%I in (claude.%%E) do set "ClaudeExe=%%~$PATH:I"
"%ClaudeExe%" --dangerously-skip-permissions %*

It looks claude up in your PATH folders only. A plain claude %* would let Windows run a claude.cmd planted in the current folder (a cloned repository, for example) instead of the real one.

Or skip the file and add a shell alias: alias claudeodin='CLAUDE_CONFIG_DIR="$HOME/.claude-odin" claude --dangerously-skip-permissions' in ~/.bashrc or ~/.zshrc.

Remove InterOdin and go back to normal

One command undoes the setup, whichever way you set it up:

node claude-code-setup.mjs delete

(remove, uninstall and --remove do the same.) It removes the claudeodin launcher and deletes exactly what the setup added to ~/.claude-odin/settings.json and ~/.claude/settings.json: the InterOdin variables, the Odin v1 / Odin Flash list in /model and the bypassPermissions mode with its skipDangerousModePermissionPrompt line, so the permission prompts come back. Your other settings stay as they are, and each file is backed up first. A model list you set up yourself is left alone. The ~/.claude-odin folder itself stays, with the claudeodin sessions and history in it; delete it if you do not need them.

If you used claudeodin, your normal claude was never changed and there is nothing else to do. If you used --replace-claude, restart Claude Code and run /login to use your Claude account again. /model then shows Claude's own models.

Set it up by hand instead? Delete the same entries yourself:

  • The claudeodin launcher or alias, and the ~/.claude-odin folder.
  • In ~/.claude/settings.json (or .claude/settings.local.json): the env entries from the table above, the modelPicker block "defaultMode": "bypassPermissions" in permissions and "skipDangerousModePermissionPrompt": true.
  • In your shell profile: the export lines from Or use environment variables, then open a new terminal. In the current one, unset ANTHROPIC_BASE_URL ANTHROPIC_AUTH_TOKEN ANTHROPIC_MODEL ANTHROPIC_DEFAULT_OPUS_MODEL ANTHROPIC_DEFAULT_SONNET_MODEL ANTHROPIC_DEFAULT_HAIKU_MODEL CLAUDE_CODE_SUBAGENT_MODEL CLAUDE_CODE_MAX_CONTEXT_TOKENS clears them (PowerShell: Remove-Item Env:ANTHROPIC_BASE_URL and so on).

Your InterOdin key keeps working for other tools. Revoke it in the console if you no longer need it.

Check that it works

Inside Claude Code, run /status. It should show the base URL above. Then send a short prompt. The request appears within seconds in the console's request logs, against the key you used.

Good to know

  • Prices in /model. The picker shows prices such as "$5/$25 per Mtok" from Claude Code's own table of Claude models. That label is display only: Claude Code has no setting to change it, and you are billed InterOdin's prices for odin-v1 and odin-flash (see the console's usage and request logs).
  • Billing. One visible turn can be several API requests: tool calls, retries, compaction. Each request is billed for its own tokens. Watch usage per key in the console, and consider giving Claude Code its own key with a monthly spend limit.
  • Caching is automatic and best-effort, so long sessions reuse their prompt prefix. No extra setup is needed. See Prompt caching.
  • Thinking. Both models think by default. Thinking is on or off only: there are no effort levels or budgets, so those settings have no effect. See Extended thinking.
  • Images. Odin v1 is text-only. A pasted screenshot, or an image file Claude Code reads itself, is replaced by a short note saying the model cannot view images, and the session carries on.
  • Documents. Attaching a PDF or another document fails with 400 unsupported_content. Paste the text instead.
  • Web search. Claude Code's WebSearch tool works. Each search is billed on top of the tokens, at the per-search price on the pricing page on the InterOdin website. A request runs at most 5 searches.
  • Client tools such as the shell, file edits and your own custom tools are ordinary function tools and work normally. Other server-side tools are removed from the request without an error.
  • [1m] suffix. InterOdin accepts a model id such as odin-v1[1m] and ignores the suffix. Don't rely on it to set Claude Code's context window. Use CLAUDE_CODE_MAX_CONTEXT_TOKENS instead.

Troubleshooting

SymptomFix
401 / "invalid API key"Check ANTHROPIC_AUTH_TOKEN, and make sure the key isn't revoked.
402 / billing errorTop up in the console.
404 model_not_foundA model slot isn't mapped. Set all three ANTHROPIC_DEFAULT_*_MODEL variables to odin-v1.
There's an issue with the selected modelANTHROPIC_MODEL or a --model value names a model InterOdin doesn't have. Set it to odin-v1, or run /model and pick it.
Startup warning Model "odin-v1" isn't recognized · context assumed to be 200k tokensHarmless: Claude Code doesn't know odin-v1. Set CLAUDE_CODE_MAX_CONTEXT_TOKENS as above so it compacts at the right time.
400 with Extra inputs are not permitted or context_managementSet CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS to 1 (already in the block above).
Claude Code shows a login screenThe key must be somewhere Claude Code reads before first-run setup: ~/.claude/settings.json or your shell. A project's .claude/settings.local.json is only read after the trust prompt.
ANTHROPIC_API_KEY is set in your shell and Claude Code uses it insteadRun unset ANTHROPIC_API_KEY (PowerShell: Remove-Item Env:ANTHROPIC_API_KEY) before starting claude. InterOdin uses ANTHROPIC_AUTH_TOKEN, and a leftover Anthropic key conflicts with it.
Warning about two credential sources (a token and a saved login)Run /logout once. The key in ANTHROPIC_AUTH_TOKEN is then the only credential.
odin-v1 missing from the /model listAdd "ANTHROPIC_CUSTOM_MODEL_OPTION": "odin-v1" to the env block. Gateway model discovery doesn't help here: Claude Code only lists discovered ids that contain claude or anthropic.
Requests still go elsewhereA project-level or managed settings.json overrides yours. Run /status to see which values are active.

On this page