Skip to main content
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.
  • 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.
If your organization manages an agent through IT, leave its configuration under IT management. For administrator deployment, see Deploy coding agents with MDM.

Install the setup tool

Run the command for your system. It installs the latest release in your user account, without administrator privileges.
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.
To install a specific release, pass its tag to the installer. For example, on macOS/Linux:
In PowerShell:
The tag selects the binary to install. Releases from v2.3.1 on include the installer.The installer also reads these environment variables:To install without the script, download the binary for your platform from the latest release page: 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:
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

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

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.
Setup wizard showing the gateway URL used for model requests

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

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

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

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

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

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

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

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 for any remaining app steps.

Open your apps

Follow your agent’s setup guide 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:
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

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:
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

See Integration with IDEs for individual guides and compatibility details.

Troubleshooting

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.
Run the installation command again, then open a new terminal. Check that an older copy of tfy-local-ai-setup is not earlier on your PATH.
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.
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 for any model requirements.
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.
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.
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 for any required app steps.
Review the log before sharing it: it can contain organization URLs and server names.

Remove the setup

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.