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

# Store Claude Code setup token



## OpenAPI

````yaml api-reference/openapi.account.json PUT /claude-code/auth/setup-token
openapi: 3.1.0
info:
  title: Aether Account & Integrations API
  version: 0.1.0
  description: >-
    Account, billing, and integration-management endpoints used by the Aether
    web app and CLI. Root-mounted; NOT part of the versioned /v1 contract.
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /claude-code/auth/setup-token:
    put:
      tags:
        - claude-code-auth
      summary: Store Claude Code setup token
      operationId: putClaudeCodeAuthSetupToken
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutClaudeCodeSetupTokenRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  auth:
                    anyOf:
                      - $ref: '#/components/schemas/ClaudeCodeAuthStatus'
                      - type: 'null'
                  needs_reauth:
                    type: boolean
                  reauth_reason:
                    type: string
                required:
                  - auth
                  - needs_reauth
                type: object
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
components:
  schemas:
    PutClaudeCodeSetupTokenRequest:
      additionalProperties: false
      properties:
        token:
          minLength: 20
          pattern: ^\s*sk-ant-oat\S{10,}\s*$
          type: string
      required:
        - token
      type: object
    ClaudeCodeAuthStatus:
      additionalProperties: false
      properties:
        type:
          enum:
            - setupToken
          type: string
      required:
        - type
      type: object
    ErrorResponse:
      additionalProperties: false
      properties:
        code:
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````