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

# LLM Sign-in API: Add a Claude or ChatGPT Subscription

> Add a Claude or ChatGPT subscription to a vault by signing in, in place of an API key. The result is an LLM key item. Cloud only.

On OneCLI Cloud a vault can hold a Claude or ChatGPT subscription in place of an API key. The person signs in with the provider, and the account lands in the vault as an LLM key item.

Use these endpoints to start and finish that sign-in. No token is ever returned.

## Related guides

* [LLMs: keep LLM keys out of your agents](/docs/integrations/llms.md)
* [Editions: what OneCLI Cloud adds](/docs/api-reference/editions.md)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [Start a Claude sign-in](/docs/api-reference/llm-sign-in/start-a-claude-sign-in.md) | `POST /v2/llm/anthropic/sign-in` | Begins signing a Claude subscription into a vault. |
| [Finish a Claude sign-in](/docs/api-reference/llm-sign-in/finish-a-claude-sign-in.md) | `POST /v2/llm/anthropic/sign-in/finish` | Exchanges the code Claude showed for tokens and adds the account to the vault as an llm\_key item. |
| [Start a ChatGPT sign-in](/docs/api-reference/llm-sign-in/start-a-chatgpt-sign-in.md) | `POST /v2/llm/openai/sign-in` | Asks OpenAI for a device code. |
| [Poll a ChatGPT sign-in](/docs/api-reference/llm-sign-in/poll-a-chatgpt-sign-in.md) | `GET /v2/llm/openai/sign-in/{id}` | Asks OpenAI once whether the person approved the code. |
| [Cancel a ChatGPT sign-in](/docs/api-reference/llm-sign-in/cancel-a-chatgpt-sign-in.md) | `DELETE /v2/llm/openai/sign-in/{id}` | Ends a pending sign-in. |

## Next steps

* [API overview](/docs/api-reference.md): base URLs, authentication, and pagination
* [Errors](/docs/api-reference/errors.md): status codes and the error format
* [Editions](/docs/api-reference/editions.md): which endpoints each edition serves


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.