Skip to content

Ability to authenticate Cap CLI using an API key, or a device (non browser) flow #2053

Description

@aidansunbury

I am trying to get the cap cli authenticated easily on remote linux sandboxes. These sandboxes will only ever be headless and have no human viewable browser, so there is no point in trying to install the desktop app to authenticate, and authenticating through the browser is also barely possible but not in a consistent and easy way.

If you run cap auth status, you get this message:

Not signed in. Sign in to Cap Desktop (the CLI reuses its login), or set CAP_API_KEY to a Cap auth key from Settings.

But there is nowhere in the cap settings on web to mint a CAP_API_KEY, and my agent confirmed this by looking at the source code.

I need this feature to actually exist, where I can mint an API key, securely inject it into my remote sandbox, and use the API key to authenticate the CLI.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions