# Use Zed with open models

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

Updated 2026-11-11

Models from the open-models service appear next to your existing Zed models.

**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)

Zed support is in preview. Your agent asks before using it. Setup and undo can run inside Zed. Avoid changing provider settings while they run.

## Start

Fully quit Zed, load the private environment file with the command your agent gives you, then start `zed` from that same terminal. Repeat after key rotation. Never paste the key into your agent. In a new Agent chat, pick an open-models service model from the model selector.

## Undo

Ask your agent to disconnect the open-models service. Your other providers stay; the private environment file is removed. Restart Zed from a new terminal.

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

## Next

[Use Grok Build with open models](https://www.rightnowai.co/docs/open-models/guides/coding-agents/grok-build)
