Use your own Claude or ChatGPT subscription
On a self-hosted deployment, an agent can use your existing harness login instead of a model API key. Mount the login in the runner, then select it on the agent.
In Agenta Cloud the Self-managed credential card is marked Unavailable in the cloud, and the option cannot be used. A subscription authenticates the harness through a login file mounted into your runner, which only exists on a deployment you run yourself. See the self-hosting quick start.
1. Mount your login into the runner
Log in to the harness on your machine, then mount the login into the runner container. Follow Use your own subscription for the file paths, mount configuration, and permission check.
Which login you need depends on the harness the agent uses:
| Harness | Login it reads |
|---|---|
Claude Code | Your Claude Code login |
Pi | Your Pi login, which also covers signing in with ChatGPT |
2. Match the harness on the agent
In the agent, set Playground mode to Build, open Model & harness in the Configuration column, and click Detailed configuration. In the Harness section, select the harness whose login you mounted, and pick a model it supports in the Model section. See Choose a harness and model.
3. Switch the credential to Subscription
In the same dialog, open Provider credentials and select Subscription. Choose Self-managed. The harness reads the credential from its environment, and Agenta does not store or inject a key.
Click Save.
4. Keep the run local
The login lives in the runner container, so the agent has to run there. Open Advanced, then Execution environment, and set Sandbox to Local. A Daytona sandbox never receives the login and cannot authenticate with it.
Every local run can read the files mounted into the runner, including this login. Use a subscription only on a deployment you run for yourself. See Sandbox isolation and security.
5. Commit
Click Commit in the Configuration header so deployments and triggers run the version that uses the subscription.