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.
Before you start
Section titled “Before you start”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:
npm install --global @chorus-aidlc/chorusSave the connection
Section titled “Save the connection”Run:
chorus loginEnter 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 the runtime
Section titled “Start the runtime”Start with one approved working directory:
chorus daemon --agent claude-code --cwd /path/to/your/project --chorus-onlyReplace 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.
Verify the connection
Section titled “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.
Stop the foreground runtime with Ctrl+C after verification. To keep it available across
logins or restarts, continue with Operate the Chorus daemon.