Connect an agent account

Use a Claude plan with Claude Code or a ChatGPT plan with Codex. You can connect an Anthropic or OpenAI API key instead. Your provider applies its own usage limits and charges for model usage. Harmux charges separately for infrastructure.

Updated View Markdown

How do I connect Claude Code?

  1. Choose Sign in to Claude Code from the first-run list. To add another account later, open Settings, then Connections, and find the Harness you want to connect.
  2. Choose Sign in with Anthropic and sign in to the account you want the agent to use.
  3. Copy the code Anthropic shows. Paste it into Harmux and choose Connect.

How do I connect Codex?

  1. Choose Sign in to Codex, then Get a sign-in code. Add credit first if prompted. Harmux starts a short-lived Machine for the sign-in.
  2. Choose Open OpenAI sign-in, sign in with your intended ChatGPT account and enter the code shown in Harmux.
  3. Approve the sign-in on OpenAI's page. The Harmux screen finishes when the account is connected.

How do I use an API key?

Choose Use an API key instead on the connection screen. Paste a key from the provider account that should pay for usage. Harmux checks the key, stores it encrypted and doesn't show it again. An API key doesn't need a sign-in Machine. Keep provider keys in the account form and out of Session prompts.

When you start a Session, pick the Harness and Account you want it to run on. You can connect multiple Claude or ChatGPT accounts and configure switching at usage limits.

Which Harnesses can I use?

HarnessAvailability on harmux.com
Claude CodeAvailable with a Claude account or Anthropic API key.
CodexAvailable with a ChatGPT account or OpenAI API key.
AntigravityBeing built.
OpenCodeBeing built.

See Renew an agent sign-in if your connected account stops working.