---
title: "Connect a Claude Code or Codex account (setup token or API key) into the credential vault"
method: POST
path: "/api/v1/provider-accounts"
tags: ["Provider accounts"]
---

# Connect a Claude Code or Codex account (setup token or API key) into the credential vault

`POST /api/v1/provider-accounts`

## Request body

- object
  - `provider` 'claude-code' | 'codex' | 'opencode' | 'hermes' | 'cursor', required
  - `method` 'subscription' | 'api_key', required
  - `secret` string, required
  - `label` string

## Response `200`

Successful response. Stable response schemas are documented in workflow guides when available.

- unknown

## Other responses

- `400` — Invalid request.
- `401` — Missing or invalid authentication.
- `500` — Unexpected server error.

## Changes

- **2026-10-03** `723150bfdd74` — 3 info
  - added the new `cursor` enum value to the request property `provider`
  - added the new `hermes` enum value to the request property `provider`
  - added the new `opencode` enum value to the request property `provider`
- **2026-10-02** `d474203bf994` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/layernorm/apis/overlay-web-api/changes/api/v1/provider-accounts/post.md)

---

[API](https://skmtc.dev/layernorm/apis/overlay-web-api.md) · [All operations](https://skmtc.dev/layernorm/apis/overlay-web-api/llms.txt) · [OpenAPI document](https://skmtc.dev/layernorm/apis/overlay-web-api/revisions/723150bfdd74?raw)
