Codity Agents

Codity Agents run tasks on a machine you choose and report their activity to the dashboard. Use them to investigate logs, work on a checkout, or keep an interactive coding session under permissions your team controls.

Where an agent runs

The quickest way to start is from a terminal: run codity agent in a repository and an interactive coding agent starts there, with the model, billing and your team's memory chosen for you. See the Agents CLI.

To run an agent on another machine, or to configure it in detail, create it in the dashboard, then run its generated install command on your laptop, development server, or another machine you manage. Clicking Deploy agent creates the configuration and install command; you still need to execute that command on the target machine.

The machine needs Node.js 18 or newer, access to Codity's agent service and downloads, and access to the selected model provider. Choose Linux (bash) or macOS (zsh) to match the target. Windows users should run the Linux flow inside WSL.

An agent configuration can have several runs. A run represents one execution on a machine, with its own history, status, usage and permission requests.

Choose a run mode

Mode Use it when Task required?
Headless You want the agent to execute a task unattended and report back. Yes.
Interactive (TUI) You want to talk to the agent in your terminal. No. Enter a task after it starts, or provide an opening task in the form.

The name is generated for you and can be changed. A name and model are required in the dashboard, plus the provider API key when you bring your own key. The Agents tab and deployment form do not require a Premium subscription. Editing shared policies requires an account administrator. Public API access has its own authentication and subscription requirements.

Model access and billing

An agent's model calls are paid for in one of two ways:

Billing How it works
Codity credits Model calls are charged to your organization's wallet at each model's rate. Codity supplies the provider access, so you don't need a model key.
Bring your own key Model usage is billed to your provider account. Supply the provider's API key in the dashboard, or set OPENAI_API_KEY, ANTHROPIC_API_KEY or OPENROUTER_API_KEY on the machine.

codity agent uses Codity credits when your organization's wallet has a balance, and otherwise the keys on the machine. In the dashboard, choose Codity credits or Bring your own key in the form.

With Codity credits you can choose Auto as the model, and Codity picks a Claude or GPT model for each message. See Automatic model selection. You can also choose a specific model.

Before each model call, Codity holds the most that call could cost from your wallet. When the call finishes, it charges what the call actually used and releases the rest. If the balance can't cover the next call, Codity refuses that call and the agent shows Insufficient wallet balance for the next model call. Top up your wallet and retry. Add balance in Wallet and send your message again.

With your own key, the dashboard encrypts the supplied key before storage and does not return it later. A Codity API key authenticates API requests; it is separate from the model provider key.

The agent page shows reported input/output tokens, spend, runs and activity. With your own key, use your model provider's billing page as the source for your invoice.

See who is running agents

The Agents page lists people first. Each card shows a person, where their agents come from (CLI, dashboard or API), and their number of agents, runs, total spend and recent activity. A card also flags runs in progress and permission requests waiting for an answer. Select a person to see their agents, and search to find someone in a large organization.

Everyone in the organization sees the same list. Each time someone starts codity agent in the same folder, it adds a run to their one agent for that folder, so you see one agent per person and project rather than one per terminal session. Its spend is the total across all of its runs.

Permissions and shared policies

Grant paths, command patterns and fetch URLs explicitly. Refuse rejects unlisted actions; Ask me sends an approval request and waits for a decision. An explicit deny remains denied in either mode.

Configure organization-wide agent permissions in Settings → Policies → Agent policy. Configure a team policy in Teams → select the team → Settings → Agent policy. Organization policies apply to every agent in that organization. A selected team's policy also applies. Shared allows supply defaults; shared denies always apply and cannot be overridden by an agent rule or an approval. Policy changes apply on the next run or resume.

These controls govern the agent's tools. If you grant a command that can execute arbitrary code, that command can access resources using the machine's normal permissions. Use a suitably restricted machine or container when you also need operating system isolation. See Permissions and YAML policies.

Pause and resume

Enable recovery when creating an agent to save encrypted conversation and tool checkpoints centrally. After a checkpoint exists, press Ctrl+C to pause. From the same working folder, continue with:

codity-agent resume --last

Recovery restores the saved conversation, not a running process or a backup of the machine's files. Interrupted actions require review before continuing. See Session recovery.

Start here