> ## Documentation Index
> Fetch the complete documentation index at: https://veecle.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage Chiplab API Keys and Connected Agent Sessions

> The API Keys page shows every AI agent connected to Chiplab. View session details, connect new agents, and revoke access when needed.

The API Keys page is your central control panel for everything that touches authentication in Chiplab. From here you can see every AI coding agent currently authorized to make requests through Chiplab, inspect when each session was established and last used, connect new agents, and immediately revoke access for any session you no longer need.

## Connected agents

The **Connected agents** section lists every active AI agent session on your account. For each session you can see:

* **Name**: the identifier assigned when the agent was connected
* **Connected**: how long ago the agent first authenticated
* **Last active**: the timestamp of the most recent request the agent made

If you haven't connected an agent yet, this section shows an empty state with a Connect agent button to get started.

Keeping an eye on last-active timestamps helps you identify stale sessions that can be safely revoked to reduce your attack surface.

## Personal access tokens

The **Personal access tokens** section is for advanced use cases where you need direct programmatic access to the Chiplab REST API — for example, in CI/CD pipelines, custom tooling, or scripts that run outside of a supported agent. Click **Create** to generate a new token, then store it securely. Tokens are shown in full only at creation time.

## Connecting a new agent

<Steps>
  <Step title="Open the connect dialog">
    On the API Keys page, click **Connect agent**.
  </Step>

  <Step title="Select your agent type">
    Choose your agent from the available options:

    <CardGroup cols={3}>
      <Card title="Cursor" icon="arrow-pointer" href="/agents/cursor">
        An editor-integrated agent. Chiplab appears as an MCP server in Cursor's Tools & MCP settings.
      </Card>

      <Card title="OpenCode" icon="terminal" href="/agents/opencode">
        A terminal-based agent. Register Chiplab under the `mcp` key in your `opencode.json`, then authenticate via `opencode mcp auth chiplab`.
      </Card>

      <Card title="Claude Code" icon="code" href="/agents/claude-code">
        A CLI agent. Register Chiplab as an HTTP MCP server with `claude mcp add`, then authenticate inside a Claude Code session using `/mcp`.
      </Card>

      More agents are added here over time. See [Integrations](/agents/overview) for the full list of supported agents.
    </CardGroup>
  </Step>

  <Step title="Follow the setup steps">
    The dialog walks you through the exact configuration steps for your chosen agent, including a ready-to-paste config snippet with your connection URL pre-filled. Complete the browser authentication flow when prompted.
  </Step>

  <Step title="Confirm the connection">
    Once authentication completes, the new session appears in the **Connected agents** list. Your agent is ready to use Chiplab immediately.
  </Step>
</Steps>

## Revoking an agent session

To revoke an agent, find its row in the **Connected agents** list and click **Revoke**. The session is terminated immediately, the agent loses access without any grace period. If the agent attempts another request after revocation, it will receive an authentication error.

<Warning>
  Revoking an agent session cannot be undone. The agent will need to re-authenticate by going through the **Connect agent** flow again to regain access.
</Warning>

## Next steps

For detailed setup instructions tailored to each agent, see the agent-specific connection guides:

* [Connect Cursor](/agents/cursor)
* [Connect OpenCode](/agents/opencode)
* [Connect Claude Code](/agents/claude-code)
