# Use Claude Code with open models

[Open models](https://www.rightnowai.co/docs/open-models) / [Use Claude Code with open models](https://www.rightnowai.co/docs/open-models/guides/coding-agents/claude-code)

Updated 2026-11-11

By default, models from the open-models service get their own `claude-run` command. Your `claude` command and settings stay unchanged.

**Connection**

| Connection | Value |
| --- | --- |
| Control site | `https://runinfra.ai` |
| Command | `runinfra` |
| Sign-in | Approve the device code in your browser. Keep your API key out of agent chat. |
| Billing | The existing funding rules of your open-model account. |

## Set up

**Text**

```text
Set up the open-models service in this coding agent for me. Read https://runinfra.ai/docs/tools-sdks/agent-setup.md and follow it step by step. If you cannot open links, run `npx -y @runinfra/cli@latest --help` and follow its FOR CODING AGENTS section. I approve sign-in in my browser. Before you install anything, change this agent's settings or spend money, show me the plan and wait for my yes.
```

Paste it into your agent, approve sign-in in your browser, and say yes to the plan. [All steps](https://www.rightnowai.co/docs/open-models/guides/coding-agents)

To use the open-models service inside `claude` itself, run `runinfra` in your terminal and choose **Inside**; it uses models from the open-models service until you disconnect.

## Start

Run the line your agent gives you. Pick a model with `/model`.

If needed, add `~/.config/runinfra/bin` to PATH (`%LOCALAPPDATA%\runinfra\bin` on Windows) to run commands by name.

## Undo

Ask your usual `claude` agent to disconnect the open-models service. This deletes `claude-run` with its sessions and history, or restores earlier settings for **Inside**.

[Source reference](https://runinfra.ai/docs/tools-sdks/claude-code?utm_source=rightnowai.co&utm_medium=referral&utm_content=docs-open-models)

## Next

[Use Codex with open models](https://www.rightnowai.co/docs/open-models/guides/coding-agents/codex)
