> ## Documentation Index
> Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Up Your IDEs

> Connect coding agents on your computer to your organization's models, MCP servers, and Skills with the TrueFoundry setup wizard.

Connect the coding tools on your computer to your organization's models through the **TrueFoundry AI Gateway**. One setup wizard connects the agents you choose and lets you add MCP servers and Agent Skills along the way.

The coding agents run on your computer; model requests go through your organization's gateway. You review every change before setup writes anything.

## Before you start

You need:

* **Your TrueFoundry sign-in URL:** the address you use to open your organization's TrueFoundry console.
* **Access to gateway models:** ask your administrator which models to use if you are unsure.
* **At least one supported agent installed:** the wizard configures existing apps; it does not install them. See [supported agents](#supported-agents).
* **A terminal:** use Terminal on macOS/Linux, or PowerShell on Windows.

For your first setup, connect **one agent and its models**. MCP servers and Skills are optional; you can skip them and add them later by rerunning the wizard.

> [!NOTE]
>
> If your organization manages an agent through IT, leave its configuration under IT management. For administrator deployment, see [Deploy coding agents with MDM](https://www.truefoundry.com/docs/ai-gateway/mdm-setup.md).

## Install the setup tool

Run the command for your system. It installs the [latest release](https://github.com/truefoundry/tfy-local-ai-setup/releases/latest) in your user account, without administrator privileges.

> [tab] macOS, Linux
>
> ```bash theme={"dark"}
> curl -fsSL https://github.com/truefoundry/tfy-local-ai-setup/releases/latest/download/install.sh | sh
> ```

> [tab] Windows
>
> Run in PowerShell:
>
> ```powershell theme={"dark"}
> irm https://github.com/truefoundry/tfy-local-ai-setup/releases/latest/download/install.ps1 | iex
> ```
>
> If you see `'irm' is not recognized`, you are in Command Prompt. Open PowerShell and run the command there.

The installer downloads the build for your computer, checks it against the release's checksums, and installs it to `~/.local/bin` (`%LOCALAPPDATA%\TrueFoundry` on Windows). If that folder is not on your PATH, it adds it: to your shell profile on macOS/Linux (`~/.zshrc`, `~/.bashrc`, your bash login file on macOS, or fish's `conf.d`), or to your user PATH on Windows.

On macOS/Linux, open a new terminal before you continue, or run the `export PATH=…` line the installer prints. On Windows, the tool works in the same PowerShell window.

Keep the binary in its installed location: agents may call it later to retrieve credentials.

> [accordion] Install another version or install manually
>
> To install a specific release, pass its tag to the installer. For example, on macOS/Linux:
>
> ```bash theme={"dark"}
> curl -fsSL https://github.com/truefoundry/tfy-local-ai-setup/releases/latest/download/install.sh | sh -s v2.3.2
> ```
>
> In PowerShell:
>
> ```powershell theme={"dark"}
> & ([scriptblock]::Create((irm https://github.com/truefoundry/tfy-local-ai-setup/releases/latest/download/install.ps1))) v2.3.2
> ```
>
> The tag selects the binary to install. Releases from v2.3.1 on include the installer.
>
> The installer also reads these environment variables:
>
> | Variable | Effect |
> | - | - |
> | `TFY_INSTALL_DIR` | Install to this folder instead of the default. |
> | `TFY_NO_MODIFY_PATH=1` | Do not change your shell profile or user PATH. |
>
> To install without the script, download the binary for your platform from the [latest release page](https://github.com/truefoundry/tfy-local-ai-setup/releases/latest): `tfy-local-ai-setup-darwin-arm64` (Apple silicon), `-darwin-amd64` (Intel Mac), `-linux-amd64`, `-linux-arm64`, or `-windows-amd64.exe`. Check it against `SHA256SUMS` from the same release. Save it as `tfy-local-ai-setup` (`tfy-local-ai-setup.exe` on Windows) in a folder on your PATH, and on macOS/Linux make it executable with `chmod +x`.

## Connect your agents

Run:

```bash theme={"dark"}
tfy-local-ai-setup personal
```

Start with the agent you use most, or select several. The wizard asks for MCP servers and Skills once for all selected agents, then shows one step per agent. Nothing is written until you review and apply the changes at the end.

**1. Sign in and select your agents**

Enter your TrueFoundry sign-in URL and complete sign-in in your browser. If the browser does not open, use the link printed in the terminal.

![TrueFoundry setup wizard asking for the control plane sign-in URL](https://mintcdn.com/truefoundry/0y7rV1BvRYVtEM_x/images/ai-gateway/personal-setup/sign-in.png?fit=max\&auto=format\&n=0y7rV1BvRYVtEM_x\&q=85\&s=40c017e753ceb23c039a155cc2084f92)

Enter the URL you use to sign in to your organization.

The wizard finds your installed agents. Use **↑/↓** to move, **Space** to select or clear an agent, and **Enter** to continue. Agents managed centrally by your organization's IT are greyed out and cannot be selected.

![Detected coding agents with checkboxes for selecting which agents to configure](https://mintcdn.com/truefoundry/0y7rV1BvRYVtEM_x/images/ai-gateway/personal-setup/select-agents.png?fit=max\&auto=format\&n=0y7rV1BvRYVtEM_x\&q=85\&s=0b100328530ef49dfcae200b9494bb6b)

Choose the installed agents you want to connect.

On later runs, setup reuses your sign-in and previous selections. Press **Esc** from the agent list if you need to sign in to a different organization.

**2. Connect to your gateway**

Setup discovers your organization's gateway and asks for a gateway URL only if it needs one. If asked, use the URL provided by your administrator or shown in the [Playground code snippet](https://www.truefoundry.com/docs/ai-gateway/quick-start.md#gateway-base-url).

![Setup wizard showing the gateway URL used for model requests](https://mintcdn.com/truefoundry/0y7rV1BvRYVtEM_x/images/ai-gateway/personal-setup/gateway-connection.png?fit=max\&auto=format\&n=0y7rV1BvRYVtEM_x\&q=85\&s=53231571655bfa9f5b074121a70cb2cd)

If prompted, confirm the gateway URL provided by your administrator.

Your **sign-in URL** opens the TrueFoundry console. Your **gateway URL** receives model requests; it may be a different address.

Setup also determines how your agents authenticate. Depending on the selected agents and your organization, it uses organization sign-in or a **Personal Access Token (PAT)**. Follow any prompts to select or create a token. If asked for its owning team, choose the team your administrator has told you to use. If you are unsure, ask before continuing. You do not need an OpenAI or Anthropic provider key.

**3. Choose shared MCP servers and Skills**

Choose the **MCP servers and Agent Skills once for every agent selected in this run**. Both are optional. Press **Enter** on a setting to open its searchable checklist.

![Shared MCP servers and Skills step with a Continue button](https://mintcdn.com/truefoundry/0y7rV1BvRYVtEM_x/images/ai-gateway/personal-setup/mcp-skills-step.png?fit=max\&auto=format\&n=0y7rV1BvRYVtEM_x\&q=85\&s=952abce4ad9f1bc22b2831c5ac6bfe35)

Step 1 selects the MCP servers and Skills shared by your selected agents.

**MCP servers** give agents access to tools such as GitHub or Linear. On a first run, available servers may already be selected; review the list before continuing. Use **↑/↓** to move and **Space** to select or clear a server, then press **Enter** to keep the selection and return to the step.

**To skip MCP servers:** clear every checked item, including **Everything I have access to** if selected. **Ctrl+A** selects all search results, or clears them when all are selected; clear the search first to include the whole list. Check that no items remain selected before pressing **Enter**.

![Searchable MCP server picker with GitHub and Linear selected](https://mintcdn.com/truefoundry/0y7rV1BvRYVtEM_x/images/ai-gateway/personal-setup/mcp-servers.png?fit=max\&auto=format\&n=0y7rV1BvRYVtEM_x\&q=85\&s=bc22b37f452eb9208ca6d7de43dcc2a2)

Review the checked servers; these choices apply to all selected agents.

**Agent Skills** are reusable instructions from your organization's Skills Registry, such as guidance for code review or documentation. Open **Skills** and select the Skills you want. To skip them, clear any checked items and press **Enter**.

![Agent Skills picker with a code-review Skill selected](https://mintcdn.com/truefoundry/0y7rV1BvRYVtEM_x/images/ai-gateway/personal-setup/agent-skills.png?fit=max\&auto=format\&n=0y7rV1BvRYVtEM_x\&q=85\&s=28914cb6afd80c89325f02a9d124cb1b)

Skills are optional and shared by the agents selected in this run.

Select **Everything I have access to** to include every server or Skill you can access and keep the list up to date as new ones are added.

Choose **Continue** when both selections are ready. Adding an MCP server configures its connection; you may still need to authorize it inside the agent after setup.

**4. Choose models for each agent**

Each agent with model settings gets its own step: Claude Code, Claude Desktop, Codex, then the remaining agents. The screen shows **Step N of M**, the file it will write when you apply, and a checklist of completed and remaining steps. Cursor has no model step; it still receives the shared MCP servers and Skills, and you connect its models inside Cursor.

Use the model IDs recommended by your administrator. Press **Enter** on a setting to open its model picker, type to search, and select the exact model ID. In a checklist, use **Space** to select models. Depending on the agent, you choose a default model, a list of available models, or models for named tiers.

![Claude Code step showing Opus, Sonnet, and Haiku model mappings and Continue](https://mintcdn.com/truefoundry/0y7rV1BvRYVtEM_x/images/ai-gateway/personal-setup/claude-models.png?fit=max\&auto=format\&n=0y7rV1BvRYVtEM_x\&q=85\&s=17451a810225e1558601ae269eb16d5b)

Choose Claude Code's tier models; changes are saved only after the final review.

Claude Code's tiers are optional; leave a tier unset to use gateway model discovery.

Saved choices are prefilled. Claude Desktop starts from Claude Code's tier choices, and later agents with model lists start from the first model list. Review those defaults and change them as needed.

Choose **Continue** to validate the current step and move on. If a required setting is missing, such as Codex's model, setup stays on that step and shows what to fill in. On the last step, choose **Review changes**.

Press **Esc** to go back a step while keeping your answers. From the first settings step, **Esc** returns to the agent list. See your agent's [setup guide](#supported-agents) for model requirements and any settings to complete inside the app.

**5. Review all changes and apply once**

The **Review changes** screen lists the proposed file changes for all selected agents together, along with authentication changes and any manual steps. Read the review, then confirm **Apply these changes?** to write the configuration.

![Codex configuration diff in the shared Review changes output](https://mintcdn.com/truefoundry/0y7rV1BvRYVtEM_x/images/ai-gateway/personal-setup/agent-review.png?fit=max\&auto=format\&n=0y7rV1BvRYVtEM_x\&q=85\&s=adae11e4ed15626024dcb18d5b5d9830)

The shared review includes file changes for every selected agent; this excerpt shows Codex.

![Final review showing authentication changes, manual steps, and the Apply these changes confirmation](https://mintcdn.com/truefoundry/0y7rV1BvRYVtEM_x/images/ai-gateway/personal-setup/review-confirmation.png?fit=max\&auto=format\&n=0y7rV1BvRYVtEM_x\&q=85\&s=57f9091d6c7af68d0ea9e5c216f59cb3)

After reviewing the files and any manual steps, confirm once to apply all changes.

> [!NOTE]
>
> Moving through the settings steps does not apply agent configuration. Cancel before applying to leave your agent configuration unchanged. Applying can partially succeed; check the completion summary for any failures.

**6. Check the completion summary**

The summary counts agents as **configured** (settings written), **unchanged** (settings already matched), **action required**, and **with errors**. For **action required**, complete the manual steps it lists, such as entering your token in Cursor or VS Code. If an agent failed, fix the reported issue and rerun setup; successful changes are kept.

Continue with your agent's [setup guide](#supported-agents) for any remaining app steps.

## Open your apps

Follow your agent's [setup guide](#supported-agents) to finish any manual steps, open the app, and authorize optional MCP servers. Open a **new terminal** before starting terminal-based agents.

## Verify the connection

1. **Send a model request.** In each agent, select your configured model and ask: `Reply exactly TFY-CHAT-OK. Do not use tools.` Confirm that a response arrives without an authentication or model error.
2. **Check the gateway.** In TrueFoundry, open **AI Gateway → Request Logs** and find the request. Check that it used the expected model. If you cannot access Request Logs, ask your administrator to confirm the request, sharing your agent, model, and the time you sent it. A chat response alone does not confirm which connection served it.
3. **Test optional tools.** If you added MCP servers, ask the agent to perform a harmless read, such as listing issues in a repository you can access. Confirm that the app shows a completed MCP tool invocation. If you added Skills, check that the agent lists them using its Skills view or command.

For additional diagnostics:

```bash theme={"dark"}
tfy-local-ai-setup status
tfy-local-ai-setup doctor
```

These commands check setup and connectivity. You still need to complete any authorization inside each app and test an actual request.

## Change your setup later

| Task | Command |
| - | - |
| Add agents or review your setup | `tfy-local-ai-setup personal` |
| Change one agent's models, MCP servers, or Skills | `tfy-local-ai-setup personal <agent>` |
| Reapply saved choices and update unpinned Skills | `tfy-local-ai-setup update` |
| Inspect saved choices | `tfy-local-ai-setup config show` |
| Sign in again | `tfy-local-ai-setup login` |
| Retrieve a token when an app asks for one | `tfy-local-ai-setup token` |

Replace `<agent>` with the command name from the table below. Choices are saved for future runs. Connection and authentication settings are shared, so review any change that could affect other agents.

## Run setup without the wizard

To script setup or reuse the same choices, put them in a JSON or TOML file and pass it with `--config`. Name agents by their [command name](#supported-agents):

```toml setup.toml theme={"dark"}
control_plane_url = "https://your-org.truefoundry.cloud"
mcp_servers = ["github", "linear"]   # or ["@all"] for everything you have access to

[agents.claude-code.models]
opus = "anthropic/claude-opus"
sonnet = "anthropic/claude-sonnet"
haiku = "anthropic/claude-haiku"

[agents.codex]
model = "coding-default"             # your Codex Virtual Model slug

[agents.opencode]
models = ["anthropic/claude-sonnet", "openai/coding-model"]
default_model = "anthropic/claude-sonnet"
```

```bash theme={"dark"}
tfy-local-ai-setup personal --config setup.toml
```

The file needs `control_plane_url` and at least one agent; `tenant_name` and `gateway_url` are discovered if you leave them out, and `skills` works like `mcp_servers`. Setup checks the file against its setup schema first, and errors name the field, for example `agents.codex: missing property 'model'`. The wizard asks only for what the file does not set, then shows the review. Add `--yes` to apply without the confirmation prompt, or `--dry-run` to show the planned changes without writing anything or creating a token.

## Supported agents

| Agent setup guide | Command name |
| - | - |
| [Claude Code](https://www.truefoundry.com/docs/ai-gateway/ide-setup/claude-code.md) | `claude-code` |
| [Codex (CLI & Desktop)](https://www.truefoundry.com/docs/ai-gateway/ide-setup/codex.md) | `codex` |
| [Claude Desktop](https://www.truefoundry.com/docs/ai-gateway/ide-setup/claude-desktop.md) | `claude-desktop` |
| [Cursor](https://www.truefoundry.com/docs/ai-gateway/ide-setup/cursor.md) | `cursor` |
| [VS Code](https://www.truefoundry.com/docs/ai-gateway/ide-setup/vscode.md) | `vscode` |
| [GitHub Copilot CLI](https://www.truefoundry.com/docs/ai-gateway/ide-setup/copilot-cli.md) | `copilot-cli` |
| [Gemini CLI](https://www.truefoundry.com/docs/ai-gateway/ide-setup/gemini-cli.md) | `gemini-cli` |
| [OpenCode](https://www.truefoundry.com/docs/ai-gateway/ide-setup/opencode.md) | `opencode` |
| [Goose](https://www.truefoundry.com/docs/ai-gateway/ide-setup/goose.md) | `goose` |
| [Qwen Code](https://www.truefoundry.com/docs/ai-gateway/ide-setup/qwen-code.md) | `qwen-code` |
| [Grok Build](https://www.truefoundry.com/docs/ai-gateway/ide-setup/grok-build.md) | `grok-build` |
| [Pi](https://www.truefoundry.com/docs/ai-gateway/ide-setup/pi.md) | `pi` |

See [Integration with IDEs](https://www.truefoundry.com/docs/ai-gateway/coding-agents-governance.md) for individual guides and compatibility details.

## Troubleshooting

> [accordion] tfy-local-ai-setup is not found after installing
>
> Open a new terminal: the installer's PATH change applies to new terminals. If it is still not found, check that the install folder is on your PATH. On macOS/Linux, run `echo "$PATH"` and look for `~/.local/bin`. If it is missing, add `export PATH="$HOME/.local/bin:$PATH"` to your shell profile. This can happen with shells other than zsh, bash and fish, or if you set `TFY_NO_MODIFY_PATH=1`. On Windows, open a new PowerShell window and check that `%LOCALAPPDATA%\TrueFoundry` is in your user PATH.

> [accordion] The setup command is missing or does not recognize personal
>
> Run the [installation command](#install-the-setup-tool) again, then open a new terminal. Check that an older copy of `tfy-local-ai-setup` is not earlier on your PATH.

> [accordion] My agent is missing or cannot be selected
>
> Install the agent, then open a new terminal and rerun setup. Setup detects terminal agents from their CLI on your PATH or their config folder, and desktop apps from the installed app or its config folder: for example, Claude Desktop from `Claude.app`, and VS Code and Cursor from their apps. An agent managed centrally by your organization is greyed out and must be configured by IT.

> [accordion] The model I need is not listed
>
> Confirm that you signed in to the correct organization and have access to the model. Ask your administrator for the exact model ID. See your agent's [setup guide](#supported-agents) for any model requirements.

> [accordion] Setup finished, but chat fails or asks for a key
>
> Open a new terminal and restart the app. Check the completion summary for manual steps. Run `tfy-local-ai-setup doctor` and check the app-specific integration guide if the error persists.

> [accordion] Chat works, but an MCP server needs authentication
>
> Complete the server's authorization flow inside the agent. Model authentication and MCP authorization are separate. Follow the authorization instructions in your agent's [setup guide](#supported-agents).

> [accordion] A Skill is missing
>
> Confirm that you selected it in the **MCP servers & skills** step, then run `tfy-local-ai-setup status` and `tfy-local-ai-setup doctor`. Rerun setup or `update` if a download failed. Check your agent's [setup guide](#supported-agents) for any required app steps.

> [accordion] I need a setup log for support
>
> ```bash theme={"dark"}
> tfy-local-ai-setup personal --debug --log-file ./tfy-personal.log
> ```
>
> Review the log before sharing it: it can contain organization URLs and server names.

## Remove the setup

```bash theme={"dark"}
tfy-local-ai-setup uninstall
```

Read the removal prompt before confirming, then restart your apps and open a new terminal. Setup attempts to delete a PAT it created in TrueFoundry; tokens it did not create are retained. If token deletion fails, follow the printed instructions to revoke it in TrueFoundry.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.