Use your own subscription
By default, Agenta runs agents with a model API key it resolves for each run. You can instead run agents with your own harness subscription: a Pi login, a Claude Code login, or a ChatGPT/Codex login.
A subscription authenticates the harness through a directory mounted into the runner container, so it works only with local runs. Agenta never uploads the login to a Daytona sandbox, and a Daytona run cannot use one.
This tutorial mounts your login into the runner container and runs an agent that uses it.
One personal subscription serves one operator, not every user of a shared deployment. Every local run can read the files mounted into the runner container, including this login. Use this only on a deployment you run for yourself. See Sandbox isolation and security.
Before you start
- A running local OSS stack. See the Quick start.
- A harness you have logged into on your own machine:
- Pi stores its login at
~/.pi/agent/auth.json. Log in withpi, then/login. - ChatGPT / Codex uses the same Pi login file. Log in with
pi, then/login, and pick the ChatGPT sign-in. - Claude Code stores its login at
~/.claude/.credentials.json. Log in withclaudeand pick the subscription login.
- Pi stores its login at
1. Confirm the login on your machine
Check that the login file exists before you mount it:
# Pi and ChatGPT/Codex
ls ~/.pi/agent/auth.json
# Claude Code
ls ~/.claude/.credentials.json