---
title: "Third-Party AI Agents | Coder"
description: "Enable Claude, Cursor, Copilot, Codex — with guardrails"
image: "https://coder.com/og/explore/how-coder-works/ai-agents"
canonical: "https://coder.com/explore/how-coder-works/ai-agents"
---

[Developers use](https://coder.com/explore/how-coder-works)

# Third-Party AI Agents

Enable Claude, Cursor, Copilot, Codex — with guardrails

## Opportunity and risk

30-50% productivity gains

### Opportunity

AI coding agents accelerate development, automate boilerplate, and help developers ship faster. Teams keep their preferred tools, such as Claude Code, Cursor, Copilot, and more.

Unbounded access

### Risk

Agents can leak secrets, access unauthorized repos, rack up costs, and violate compliance requirements when run on local machines without governance.

## How Coder helps

Agents run as processes within the workspace and are subject to the same network, resource, and filesystem controls as any other process there.

- **Blocked:** Unauthorized repos
- **Blocked:** External APIs
- **Blocked:** Unlimited spend

## Supported Agents

**Any CLI, IDE plugin, or API-based agent works:** Agents run inside workspaces. If it runs in a terminal or IDE, it works in Coder. No special integration required.

### Claude Code

Anthropic

### Cursor

AI-native IDE

### Copilot

GitHub

### Codex

OpenAI

### Windsurf

Codeium

### Continue

VS Code ext

### Aider

CLI tool

### Cline

VS Code ext

### Custom

Your agents

## Platform controls

**One platform for developers and agents:** Workspace controls govern infrastructure and network access, while AI Gateway add agent-aware auditing and policy enforcement.

### Access controls

Agents inherit workspace credentials and network access. Restrict access through templates and network policy.

### Spend limits

Cap LLM costs per user, group, or deployment-wide with daily, weekly, or monthly budgets. Overage blocks further LLM calls routed through AI Gateway.

### Audit trails

Audit prompts, model usage, spend, and tool calls through AI Gateway.

### Workspace lifecycle controls

Use workspace scheduling, inactivity timeouts, and template policies to govern long-running agent environments.

## Governance layers

**Governance is platform-level:** AI Gateway applies across supported agents, including Claude Code, Copilot, and Codex. The agent doesn't choose the policy—the platform does.

### AI Gateway

Central proxy for LLM traffic from supported clients. Developers authenticate with their Coder login instead of distributing provider API keys. Every prompt, response, and token spent is logged and attributed.

### MCP server management

Define an approved set of Model Context Protocol servers that agents can use. Standardize tool access across teams.

Model flexibility

## Choose how agents access AI models. Coder supports external APIs, model brokers, or self-hosted models.

Easiest setup

### External LLM providers

Agents call Anthropic, OpenAI, or Azure OpenAI directly. Secrets injected from vault.

Best for cost control

### Model broker

Route agent requests through a broker (LiteLLM, Portkey) for cost control, fallback, and monitoring.

Noticeable

### Self-hosted models

Run Ollama, vLLM, or other inference servers in your infrastructure. Agents access via local endpoint.

## Patterns

Most common

### Developer + Agent

Human developer supervises AI agent. Developer reviews and approves changes before merging.

- Agent suggests code
- Developer reviews
- Human has final say

[Recommended: Coder Agents

### Autonomous, delegated work

For headless, scheduled, or fully autonomous workflows—where the agent runs without a developer watching—Coder Agents is purpose-built for the job.

- Self-hosted agent loop in the control plane
- API and schedule-driven execution
- Same governance, deeper integration

Explore Coder Agents](https://coder.com/explore/how-coder-works/coder-agents)

FAQs

## FAQs

### Do agents run in the same workspace as developers?

Yes. Third-party agents run within developer workspaces and inherit the same workspace environment, network boundaries, and resource limits as already managed by Coder. AI Gateway can extend those controls with prompt auditing and agent-aware governance.

### Can we set spending limits per developer or per team?

Yes, via AI Gateway. Budgets are configurable at the user and group levels, with auto-pause for overage.

### What if an agent makes destructive changes inside a workspace?

Workspaces are ephemeral and reproducible. If an agent damages the environment or filesystem, rebuild the workspace from the template.

### What if an agent does something we need to investigate after the fact?

AI Gateway captures prompts, tool calls, and model activity, while Coder audit logs track workspace and control-plane actions.

### Can we limit which repos, APIs, and cloud resources agents can access?

Agents inherit the workspace's credentials and network access. Restrict access through template configuration and network policy.

### Do the same controls apply to agents and developers?

Workspace-level controls like network policy, quotas, and template restrictions apply automatically. AI Gateway adds agent-aware governance and auditing.

### Can we use our own models (not OpenAI/Anthropic)?

Yes. Any OpenAI-compatible endpoint, self-hosted inference server (Ollama, vLLM), or enterprise proxy (LiteLLM, Portkey) is supported.

## Ready to learn more?

[Try Open Source](https://coder.com/docs/install)

[Book a demo](https://coder.com/demo) [Contact sales](https://coder.com/contact/sales)
