For the complete documentation index, see llms.txt. A markdown version of this page is at /workstations/coding-agents/coding-agent-setup/index.md.

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

In Ringleader’s experience, Claude Code needs more memory than a 1 GiB workstation has. Give a Claude Code workstation at least a few GiB.

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

The key is then in the workstation’s environment. Secrets on the workstation says what that exposes. To keep it off the workstation, use an 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.

AgentSign inAPI key variableDocumentation
Claude CodeRun claude and sign in when it opens the browser, or run claude auth login.ANTHROPIC_API_KEYAuthentication
CodexRun codex login. On a workstation with no browser, run codex login --device-auth.OPENAI_API_KEY, passed to codex login --with-api-keyAuthentication
OpenCodeRun /connect in OpenCode and choose a provider.The variable of the provider you choose, such as OPENROUTER_API_KEYProviders
piRun /login in pi and choose a provider.The variable of the provider you choose, such as OPENROUTER_API_KEYProviders
Cursor CLIRun cursor-agent login. Cursor’s documentation writes the command as agent login.CURSOR_API_KEYAuthentication
Antigravity CLIRun 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.jsonAuthenticate

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-code devtool puts three settings in the managed settings layer:

    • permissions.defaultMode is "bypassPermissions", so Claude Code does not prompt.
    • skipDangerousModePermissionPrompt is true, so Claude Code starts without the “Bypass Permissions mode” warning. Ringleader sets it only when it sets permissions.defaultMode itself.
    • env.DISABLE_AUTOUPDATER is "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 an Auto-update failed warning. claude update still works by hand.

    Folder trust is separate from these settings. Claude Code opens without a trust prompt in the folders in sources[].path and trustedFolders. 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 managedSettings of a claude-code toolconfig. 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 returns

Setting 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[].path and trustedFolders, and only when the workstation declares any.
  • To change: Add a codex toolconfig. Its configToml is your own config.toml, and config takes the same settings as YAML. To trust another folder, add it to trustedFolders.
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: false in /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 set OPENCODE_DISABLE_AUTOUPDATE=1.
  • To change: To turn automations back on, declare automations: true under settings of an opencode toolconfig. To turn the update offer back on, set OPENCODE_DISABLE_AUTOUPDATE in the workstation’s environment. Your value wins, and OpenCode’s documentation says which values it reads as disabled.
spec:
  toolconfigs:
    - name: opencode
      config:
        settings:
          automations: true

pi defaults

  • Defaults: None. Ringleader writes no pi setting unless you declare a pi toolconfig or an LLM Integration reaches the workstation.
  • To change: Add a pi toolconfig 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-5

Cursor 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