Skip to main content
Version: v2.0

Use your own Claude or ChatGPT subscription

An agent can authenticate with a harness login you already have, instead of a model API key you add to Agenta. This page covers the settings on the agent. The deployment side is covered by the self-hosting guide, which this page links to at the step where you need it.

This needs a self-hosted deployment

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 own machine, then mount that login into the runner container and point the harness at it. The steps, including the file paths and the permission check that decides whether the container can read them, are in Use your own subscription in the self-hosting section.

Which login you need depends on the harness the agent uses:

HarnessLogin it reads
Claude CodeYour Claude Code login
PiYour 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. The Self-managed card explains what it does: the harness uses a credential it reads from its own environment, and Agenta stores and injects no key. The card also carries a Read the self-hosting guide → button, which goes to the page in step 1.

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.

warning

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.