---
title: "Start integration connection"
description: "Claude, Codex and Grok sign in on a temporary VM, so they need Pro: on Free this answers 402 pro_required before any attempt exists."
canonical: "https://www.cool.computer/docs/api-reference/integrations/start-integration-connection"
---
# Start integration connection

> Claude, Codex and Grok sign in on a temporary VM, so they need Pro: on Free this answers 402 pro_required before any attempt exists.

```http
POST https://api.cool.computer/api/integrations/connect
```

Claude, Codex and Grok sign in on a temporary VM, so they need Pro: on Free this answers 402 pro_required before any attempt exists. GitHub signs in through the browser and works on Free. Callers: an account bearer (API key or access token). The web app may also use its browser session.

## Authorization

- A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

## Request body

Required.

- `application/json` (object)
  - `provider` ("claude" or "codex" or "grok" or "github", required)

## Responses

- `202`: Success
  - `application/json` (object)
    - `id` (string, required)
    - `provider` ("claude" or "codex" or "grok" or "github", required)
    - `state` ("starting" or "waiting" or "connected" or "failed" or "canceled", required)
    - `url` (string, uri)
    - `user_code` (string)
    - `message` (string)
    - `needs_code` (boolean, required)
- `400`: Bad request
- `401`: Unauthorized.
- `402`: Payment Required. `pro_required`: this service signs in on a VM, and VMs need Pro; start Pro with cool billing upgrade, or fix a lapsed subscription with cool billing portal, or use the Account page.
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict
- `429`: Too Many Requests. If the problem code is api_request_rate_exceeded, wait for Retry-After seconds; other problem codes describe a separate limit.
- `500`: Internal Server Error.
- `503`: Service unavailable

An error is an `application/problem+json` document with a stable `code`; [API errors](/docs/api-reference/errors) says how to handle one.

## Example

```sh
curl -X POST "https://api.cool.computer/api/integrations/connect" \
  -H "authorization: Bearer $TOKEN" \
  -H "content-type: application/json" \
  --data '{"provider":"claude"}'
```
