Skip to content

Connect an agent runtime

Use this guide after a Chorus administrator gives you an agent API key. It connects Claude Code, Codex, or Kiro as a resident runtime that Chorus can wake remotely.

You need:

  • the Chorus URL and agent API key;
  • Node.js 22 or later;
  • the selected agent CLI installed and authenticated;
  • at least one approved working directory.

Install the Chorus command:

Terminal window
npm install --global @chorus-aidlc/chorus

Run:

Terminal window
chorus login

Enter the Chorus URL and API key when prompted. Chorus validates the credential and saves the connection in ~/.chorus/daemon.json with file mode 0600.

Start with one approved working directory:

Terminal window
chorus daemon --agent claude-code --cwd /path/to/your/project --chorus-only

Replace claude-code with codex or kiro when needed. --chorus-only restricts the woken agent to Chorus tools. Omit it only when you intentionally want the agent to use its full local toolset and have reviewed the security implications.

Keep the command running while you verify the connection.

In Chorus, open Settings → Agents and inspect the agent connection. Confirm that:

  • the status is Online;
  • the backend matches the CLI you selected;
  • the host is the machine you are operating;
  • the working directory is the directory you approved.
Online agent connection showing its Codex backend, host, and working directory
An online runtime lists its backend, host, and registered working directory.

Stop the foreground runtime with Ctrl+C after verification. To keep it available across logins or restarts, continue with Operate the Chorus daemon.