# Self-host Agenta

Source: https://agenta.ai/docs/self-host/overview

A self-hosted deployment runs the studio, the API, the agent runner, and their datastores on your
own infrastructure. It has every feature of Agenta Cloud except the governance features listed
under [Editions](#editions).

:::tip Self-host with your coding agent
Paste this into Claude Code (or your coding agent) and it will walk you through setup and testing:

```
1. Install the Agenta self-hosting skill: npx skills add Agenta-AI/agenta-skills
2. Help me self-host Agenta with its repository.
```

:::

## Start here

- [Quick start](https://agenta.ai/docs/self-host/quick-start.md) runs the full stack locally with Docker Compose.
- [Deploy on a remote server](https://agenta.ai/docs/self-host/guides/deploy-remotely.md) puts that stack on a server you own.
- [Deploy to Kubernetes](https://agenta.ai/docs/self-host/guides/deploy-to-kubernetes.md) runs it from the Helm chart.
  [Prepare a Kubernetes deployment for production](https://agenta.ai/docs/self-host/guides/kubernetes-production.md) then
  covers replicas, disruption budgets, rollouts, and managed Kubernetes.
- [Deploy on Railway](https://agenta.ai/docs/self-host/guides/deploy-on-railway.md) is a community-maintained deployment. There is
  no official support for it, and fixes depend on contributor availability.

## Where agents run

Agents execute in the runner service, in one of two sandboxes. Pick one before you open the
deployment to other people:

- [Run agents in a cloud sandbox (Daytona)](https://agenta.ai/docs/self-host/agent-execution/daytona.md) gives every run its
  own isolated cloud sandbox. Use it for multi-user deployments.
- [Run agents locally](https://agenta.ai/docs/self-host/agent-execution/run-agents-locally.md) executes agents inside the
  runner container. Local runs are the default, and they are not isolated from each other, so use
  them on a deployment you run for yourself or for a trusted team. They are also the only runs that
  can use [your own Claude, Pi, or ChatGPT subscription](https://agenta.ai/docs/self-host/use-your-own-subscription.md)
  instead of a model API key.

[Sandbox isolation and security](https://agenta.ai/docs/self-host/agent-execution/sandbox-isolation-and-security.md) covers
the difference in full. [Customize the agent runtime](https://agenta.ai/docs/self-host/agent-execution/customize-the-agent-runtime.md)
adds tools, folders, or compute to either one.

## Editions

Every self-hosted install runs the same public images. A [license key](https://agenta.ai/docs/self-host/license-keys.md)
decides the plan:

- **No key** (Community plan): 1 project per organization and 1 organization per instance. Every
  page in this section applies to it.
- **Free key** (Registered plan): no project limit, 1 organization per instance.
- **Paid key** (Enterprise plan): no limits, and the governance features: SSO per organization,
  more roles, and the audit log.

[Editions](https://agenta.ai/docs/misc/opensource.md) compares the plans and explains the licensing.

## Operate a deployment

- [Configuration](https://agenta.ai/docs/self-host/configuration.md) lists every platform environment variable.
- [Runner and sandbox configuration](https://agenta.ai/docs/self-host/configuration.md#agent-runner) lists every
  runner variable.
- [Back up and restore agent files](https://agenta.ai/docs/self-host/agent-execution/back-up-agent-files.md) covers bucket
  versioning, undoing an accidental delete, and backing up the bundled store's volume.
- [Architecture](https://agenta.ai/docs/self-host/infrastructure/architecture.md) and
  [Networking](https://agenta.ai/docs/self-host/infrastructure/networking.md) describe the containers and the traffic
  between them.
- [Upgrading](https://agenta.ai/docs/self-host/upgrading.md) covers version upgrades and migrations.
