Skip to content

Ability to use Anthropic/Claude subscription in sbx via anthropic oauth secret #3885

Description

@pkimtani

Overview

Currently docker-agent supports Anthropic models via ANTHROPIC_API_KEY.
When using docker-agent in sbx mode, I found that I could configure anthropic secret via oauth and store it as sbx secret (note the caveat below).
It would be really nice if docker-agent could use this secret to provide support for Anthropic models.

One caveat:
If and how can docker-agent provide setting Anthropic oauth keys for claude code subscribers?
In my case, I am using claude code with sbx in another project and in the initial setup I ran "/login", which authenticated interactively and stored the secret. For other users, they might need some native support from inside the docker-agent TUI/CLI directly.

Motivation

I would like to use docker-agent in my other project(s) where I have a claude code subscription (not ANTHROPIC_API key).

Use cases

No response

Proposed solution

No response

Alternatives

No response

Related issues

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/providers/anthropicFor features/issues/fixes related to the usage of Anthropic modelsarea/securityAuthentication, authorization, secrets, vulnerabilities

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions