Check out the newest way to compare different models for a task/agent harness: AutoEvals
Connect an agent

Coding Agents

Claude Code

Route Claude Code through the Inference.net gateway with inf claude.

inf claude routes Claude Code through https://api.inference.net using its native Anthropic protocol. Claude Code appends /v1/messages itself, so the base URL has no /v1 suffix. Claude Code assumes a 200K context window for model ids it does not recognize, so inf also writes CLAUDE_CODE_MAX_CONTEXT_TOKENS with the real window.

Config file

inf writes fields in ~/.claude/settings.json (JSON). If CLAUDE_CONFIG_DIR is set, inf uses that directory. inf owns fields, not the whole file.

inf claude on

inf claude on
FlagRequiredDescriptionDefault
--main <alias>NoMain slot (model)kimi-k3-fast
--opus <alias>NoOpus slotkimi-k3-fast
--sonnet <alias>NoSonnet slotkimi-k3-fast
--haiku <alias>NoHaiku slotdeepseek-v4-flash-0731
--fable <alias>NoFable slotkimi-k3-fast
--subagents <alias>NoSubagents slotdeepseek-v4-flash-0731

See Model mapping for supported aliases and limits.

What gets written

PathValue
modelMain alias
env.ANTHROPIC_BASE_URLhttps://api.inference.net
env.ANTHROPIC_AUTH_TOKENgateway key (secret)
env.CLAUDE_CODE_MAX_CONTEXT_TOKENSsmallest context window across the six slots
env.ANTHROPIC_DEFAULT_OPUS_MODELOpus alias
env.ANTHROPIC_DEFAULT_SONNET_MODELSonnet alias
env.ANTHROPIC_DEFAULT_HAIKU_MODELHaiku alias
env.ANTHROPIC_DEFAULT_FABLE_MODELFable alias
env.CLAUDE_CODE_SUBAGENT_MODELSubagents alias

inf claude status

inf claude status
Claude Code — connected
  Gateway  https://api.inference.net
  Models   main=kimi-k3-fast, opus=kimi-k3-fast, sonnet=kimi-k3-fast, haiku=deepseek-v4-flash-0731, fable=kimi-k3-fast, subagents=deepseek-v4-flash-0731
  Config   /Users/you/.claude/settings.json

Drift warnings print after this block when an owned field is modified or missing.

inf claude status --json

inf claude off

inf claude off

off restores unchanged owned fields. It keeps fields that you edited after on.

Examples

Use GLM for the Opus and Sonnet slots:

inf claude on --opus glm-5.2-fast --sonnet glm-5.2-fast

Restart Claude Code after on or off. See Troubleshooting for drift, recovery, and key revocation.

On this page