Coding agent setup
Install any coding agent on a workstation, give it a key and sign in, then change the defaults Ringleader sets for the agents it supports.
Install any coding agent on a workstation, give it a key and sign in, then change the defaults Ringleader sets for the agents it supports. The agent runs inside the workstation, so it sees the files and tools you put there and none of the files on your computer.
The steps on this page work for every agent. Supported agents says which agents Ringleader also configures, and the last section lists the defaults it sets for each. For an agent that is not on that list, see Run your own coding agent in Ringleader.
Memory and outbound traffic
A coding agent is a long-running program, so size the workstation for it. Memory is a provider setting. Provider settings describes how to give a workstation more. Ringleader sets no memory for any agent.
Give Claude Code a few GiB of memory
If the workstation restricts outbound traffic, the agent can reach only the hosts the policy allows. Allow the host of the agent’s model provider and the host it signs in at. Outbound restrictions describes the policy. When an Integration adds a key to the agent’s requests, the agent must also trust Ringleader’s certificate, as Effects of injection on a workstation describes.
Install a coding agent
Add the agent to the workstation. For a supported agent, declare its devtool, as Install a devtool describes, or apply one of the stacks, which install an agent for you. Any other agent installs as a package or a script, as the Run your own coding agent in Ringleader guide describes.
Each supported agent has its own devtool and its own command, which
Supported agents
lists. Each command is on the system PATH, so it works for the login user and for root. The
Devtools reference lists the versions each devtool
installs.
Start a coding agent
Open a shell on the workstation, then run the agent’s command:
rl shell <workstation>When the agent asks you to sign in, follow Sign in to a coding agent.
Give a coding agent a key
An agent that calls a provider with an API key needs the key in its environment. Put the key
in a Secret and name it in the workstation’s environment. This example uses Claude Code’s
variable. Each agent reads a different one, which
Sign in to a coding agent lists:
spec:
environment:
ANTHROPIC_API_KEY: "${secret:anthropic-api-key}"The key is readable on the workstation
httpProxy Integration, as
Keep the gateway key off the workstation
describes. It works for any agent that calls a fixed host, and
Keys added to requests for any agent
says what Codex, pi and OpenCode need besides.Sign in to a coding agent
Sign in with your account, or give the agent an API key. A workstation has no browser, so an agent that opens one to sign you in needs Browser sign-in. If the agent prints a sign-in link, follow Sign in to a tool from a workstation.
The table gives each agent’s sign-in and its API key variable, from the agent’s own documentation. Follow the documentation, because the agents change their sign-in more often than Ringleader does.
| Agent | Sign in | API key variable | Documentation |
|---|---|---|---|
| Claude Code | Run claude and sign in when it opens the browser, or run claude auth login. | ANTHROPIC_API_KEY | Authentication |
| Codex | Run codex login. On a workstation with no browser, run codex login --device-auth. | OPENAI_API_KEY, passed to codex login --with-api-key | Authentication |
| OpenCode | Run /connect in OpenCode and choose a provider. | The variable of the provider you choose, such as OPENROUTER_API_KEY | Providers |
| pi | Run /login in pi and choose a provider. | The variable of the provider you choose, such as OPENROUTER_API_KEY | Providers |
| Cursor CLI | Run cursor-agent login. Cursor’s documentation writes the command as agent login. | CURSOR_API_KEY | Authentication |
| Antigravity CLI | Run agy. It opens a browser, or over SSH prints a link and asks for the code the browser shows. | GEMINI_API_KEY, with "modelProvider": "gemini" in ~/.gemini/antigravity-cli/settings.json | Authenticate |
Coding agent defaults
Supported agents says what Ringleader sets for each agent. Each subsection below has the same two parts: how the default works, and how to change it. A toolconfig writes an agent’s own configuration files. Add one only to change a default, set a model or add MCP servers.
Claude Code defaults
Defaults: Installing the
claude-codedevtool puts three settings in the managed settings layer:permissions.defaultModeis"bypassPermissions", so Claude Code does not prompt.skipDangerousModePermissionPromptistrue, so Claude Code starts without the “Bypass Permissions mode” warning. Ringleader sets it only when it setspermissions.defaultModeitself.env.DISABLE_AUTOUPDATERis"1", so the background updater does not run. The updater runs as the login user and cannot write the root-owned install, so all it would do is print anAuto-update failedwarning.claude updatestill works by hand.
Folder trust is separate from these settings. Claude Code opens without a trust prompt in the folders in
sources[].pathandtrustedFolders. Start it outside those folders, such as in your home directory, and it can ask whether you trust the folder.To change: Set the key in
managedSettingsof aclaude-codetoolconfig. Your value then stands:
spec:
toolconfigs:
- id: claude-code
name: claude-code
config:
managedSettings:
permissions:
defaultMode: default # prompts return
deny:
- "Bash(rm -rf *)"
env:
DISABLE_AUTOUPDATER: "0" # background auto-update returnsSetting permissions.defaultMode or permissions.disableBypassPermissionsMode leaves your
whole permissions block as you wrote it. The allow, deny and ask lists are kept either
way. If you set defaultMode to "bypassPermissions" yourself, also set
skipDangerousModePermissionPrompt: true, or Claude Code shows the warning when it starts.
To keep the warning with Ringleader’s bypass mode, set skipDangerousModePermissionPrompt to
false. Claude Code can still skip the warning for a user who has already accepted it.
Codex defaults
- Defaults: Ringleader sets one thing. It trusts the folders in
sources[].pathandtrustedFolders, and only when the workstation declares any. - To change: Add a
codextoolconfig. ItsconfigTomlis your ownconfig.toml, andconfigtakes the same settings as YAML. To trust another folder, add it totrustedFolders.
spec:
toolconfigs:
- id: codex
name: codex
config:
configToml: |
model = "o4-mini"OpenCode defaults
- Defaults: Ringleader sets two defaults on every workstation. Automations are off,
through
automations: falsein/etc/opencode/opencode.json. OpenCode reads that file after a repository’s own settings, so a repository cannot turn automations back on. The update offer is off, because login shells and OpenCode sessions setOPENCODE_DISABLE_AUTOUPDATE=1. - To change: To turn automations back on, declare
automations: trueundersettingsof anopencodetoolconfig. To turn the update offer back on, setOPENCODE_DISABLE_AUTOUPDATEin the workstation’senvironment. Your value wins, and OpenCode’s documentation says which values it reads as disabled.
spec:
toolconfigs:
- name: opencode
config:
settings:
automations: truepi defaults
- Defaults: None. Ringleader writes no pi setting unless you declare a
pitoolconfig or an LLM Integration reaches the workstation. - To change: Add a
pitoolconfig to set the default model, install packages, or declare providers and MCP servers.
spec:
toolconfigs:
- name: pi
config:
settings:
defaultProvider: anthropic
defaultModel: claude-sonnet-4-5Cursor CLI defaults
- Defaults: None. Ringleader installs Cursor CLI and sets nothing in it.
- To change: None, because Ringleader has no toolconfig for Cursor CLI. Write its own
configuration files with the workstation’s
files.
Antigravity CLI defaults
- Defaults: None. Ringleader installs Antigravity CLI and sets nothing in it. The CLI updates itself in the background.
- To change: None, because Ringleader has no toolconfig for Antigravity CLI. Write its own
configuration files with the workstation’s
files.
Next steps
- Supported agents says what Ringleader installs, sets and configures for each agent.
- LLM gateways for coding agents points your agents at an LLM gateway.
- MCP servers for coding agents gives your agents MCP servers.
- Browser sign-in sets up the sign-in link that an agent opens.
- Run your own coding agent in Ringleader runs an agent that Ringleader does not configure.
- Lock down Claude Code for unattended runs keeps your keys and your local network away from a Claude Code workstation.