# AI accounts and funding

Connect several accounts in **Settings → Models & accounts → Accounts**. Choose Claude Code or Codex, then **Continue with Claude** or **Continue with ChatGPT**. hlix stores the connection encrypted; account reads never return credentials.

- **Codex:** enter the displayed one-time code on the ChatGPT authorization page. hlix detects approval and saves the connection automatically. If device login is disabled, enable it in your ChatGPT security settings or ask your ChatGPT workspace administrator.
- **Claude Code in the desktop app:** approve access in your browser. The app receives the callback and completes the connection automatically.
- **Claude Code on the website:** approve access, then paste the short authorization code shown by Claude into hlix.

Sign-in attempts expire after ten minutes. Closing the dialog cancels a pending attempt. Use **Reconnect** to replace an expired or revoked connection while preserving account settings.

Subscriptions start private to the person connecting them. Their owner can explicitly share them with the workspace and is the only person who may replace the sign-in. Workspace owners and administrators can rename, disable, unshare or remove accounts, and manage API-key accounts. Agency members can connect and manage their own subscriptions. Portal clients cannot access coder credentials.

## Choose funding

In **Settings → Models & accounts → Defaults** (the Cycle group), or in a project's settings window under **General**, select the coder and funding independently:

- **Managed by hlix** uses Hlix-funded model access and the managed model configuration. Saving a provider key does not change this selection.
- **Custom API key**: hlix hands the coder the key, its base URL and the model. A Claude key (Anthropic Messages) runs Claude Code, OpenCode, Goose or Pi. An OpenAI key (Responses and Chat Completions) runs Codex, OpenCode, Goose, Qwen Code, Pi or hlix.
- **Connected subscription**: a ChatGPT sign-in runs Codex only; a Claude sign-in runs Claude Code only, as its own command-line tool.

You can also connect a model provider under **Accounts**, then select it with a model for Hlix Code. This uses that provider's API key and billing; it does not change managed funding or fund an external coder.

For a coder account, leave the native model ID blank to use the provider default for Claude Code and Codex, or enter a vendor model ID. Every other coder needs the model ID entered. This setting is separate from the managed model catalog. Inherit the coder and the funding separately: inheriting one preserves the other override.

A named account stays pinned to that selection. If it needs attention, reconnect it or choose another account. Cooldown, expiry and reconnect states appear beside each account.

## Usage and charges

Project and cycle views show usage reported by the coder and label incomplete reports. Account quota percentages show the provider's allowance window; use project usage for token counts and charges.

Accepted tasks on a connected subscription or custom API key use the **Own subscription** task option. Task charges are shown in Hlix Dollars (`H$`); your model provider bills its subscription or API usage separately. See [Plans & pricing](/billing/plans/) for current task prices.

## Repository instructions with connected accounts

Add shared standards to your project instructions or [activated skills](/configure/packs-and-skills/). Hlix supplies these with the project brief when a connected account runs. Claude Code's automatic local settings, hooks and `CLAUDE.md` loading, and Codex's automatic project configuration loading, are disabled for connected-account runs. The coder can still read repository files through its tools.

## API

Use the [Coder accounts API](/api/reference/coder-accounts/) to list account metadata, manage labels and sharing, reconnect subscriptions or test API keys. Connection attempts belong to the user and Workspace that started them.

Project and cycle views show the account and funding used for each run. Removing an account from Hlix does not revoke its key or cancel its subscription at the provider.