Claude API

New API key

Device lock
Limits (0 = unlimited)
Models (none ticked = all)

Key created

Copy the key now — it is shown only once. It will lock to the first device that uses it.

Setup

Base URL API keythe key above Modelsonnet
Test with curl

        
      
Python (openai package)

        
      

Own apps can send an X-Device-Id header with a fixed per-device value; the key then locks to that ID instead of the User-Agent.

Claude token

  1. On any computer with Claude Code installed, run claude setup-token.
  2. Sign in with the Claude account (Pro / Max / Team) in the browser window it opens.
  3. Paste the token it prints (starts with sk-ant-oat) below. It is valid for a year.

Change admin password