Authentication
Authenticate application requests with a Sikaru project API key. Dashboard sign-in sets up your browser session. Use sikaru auth login separately for device sign-in in the terminal.
Signed-in user tokens carry the verified runner identity needed for personal connections. Project keys cannot impersonate a user through request labels.
Prepare your environment
Get your project ID and API key
Sign in to the Sikaru platform, select the intended project, and get its project ID and API key. Use the API URL for your environment. The hosted API uses https://api.sikaru.ai.
Set environment variables
SIKARU_PROJECT_ID is a value used by these examples; pass it explicitly to SDK operations. The SDK examples also pass the base URL and key explicitly.
Test a REST request
For REST requests, send Authorization: Bearer <your-project-api-key>. For example, this read lists the project’s agents:
An empty successful listing means the request was authorized but there are no agents to display. Continue with the Quickstart to create one.
Permissions by task
A valid key may still lack permission for a particular operation. Use a key for the intended project and grant only the operations your integration needs. The first-agent quickstart needs the first four permissions above.
Keep the key on your backend
A browser or mobile client should call your application’s authenticated backend. Your backend checks the user’s access, selects the tenant and user identifiers, and calls Sikaru.
Do not include a project API key in a browser bundle, prompt, uploaded file, or public issue.
For the CLI, inject SIKARU_API_KEY or use its operating-system keyring. See CLI automation for login and credential-source behavior. Local-compute executors use restricted attachment credentials; do not pass the controlling project key into the execution sandbox.
Diagnose access failures
Changing an ID or retrying a mutation is not a remedy for an access failure. See Troubleshooting for other failure cases.
