Candex
Docs Guide Blog Download
Sign in Register Console
~/my-project — zsh

$ candex

A top AI engineer on every computer A top AI engineer on every computer

  • ✓ Mission: Every developer can use the strongest, best-value AI coding tool
  • ✓ Vision: Capability stays in the cloud. The code and control stay in your hands
  • ✓ Values: On your machine first. Token billing is public and transparent

Changelog

  • Optimized how conversations load. Token use is one third of what it was.

Use Claude in the terminal. Write code with Claude Code.

Mac / Linux curl -fsSL https://candex.dev/api/install.sh | bash
Windows PowerShell irm https://candex.dev/install.ps1 | iex
Windows cmd curl -fsSL https://candex.dev/install.cmd -o install.cmd && install.cmd && del install.cmd

Commands

Sessioncandex
Synccandex load
Balancecandex status
Updatecandex update
Windowcandex desktop
Versioncandex version
Get started Sign in
01 / session

Reconnect

After a drop, reconnect before the countdown ends and the conversation continues.

02 / billing

Pay per use

Priced per token. Open a bill to see the rate and the formula.

How do I use Claude in the terminal?

Install Candex, then run candex in a project directory to use Claude in the local terminal.

How does Claude Code write code in the terminal?

Candex opens Claude Code in the terminal to write code.

Does a Claude command-line chat survive a disconnect?

Reconnect within 60 seconds and the Candex conversation continues. After 45 minutes with no keystrokes and no new Claude output, the session ends.

How do I pair with candex init?

Register and sign in, copy candex init from the Keys page, and run it once in the terminal. Then run candex in a project directory.

How candex init pairs

How do I restore Claude within 60 seconds?

After a disconnect Candex waits 60 seconds. Reconnect in that window and the conversation is still there. After 60 seconds, run candex again and use /resume.

Restore Claude within 60 seconds

How does the Candex invite rebate work?

Copy the invite link on Overview. When a friend registers with it and completes a first top-up, 20% of that amount is added to your balance and 5% is added to theirs. Once only.

Candex invite rebate

What is the Claude Code flow?

Install Candex, register and sign in, pair once with candex init, then run candex in a project directory.

Claude Code flow

Candex
Candex
Docs Blog Download
Sign in Register Console

Guide

Commands

Sessioncandex
Synccandex load
Balancecandex status
Updatecandex update
Windowcandex desktop
Versioncandex version

Stay in the conversation

With no keystrokes and no new Claude output for 45 minutes, the terminal shows “已 45 分钟没有任务,会话已结束”. A keystroke or new output resets the timer. A shell that is still running does not keep the session while the screen stays still, and the login returns to the pool. A heartbeat about every 25 seconds is not a task. Run candex again, then /resume.

The connection dropped

After a drop, the node waits another 60 seconds. If the task is waiting when you reconnect, Candex types “继续” and the task continues. If the node process restarted, the old session is gone and Candex opens a new one, restores the conversation, and types “继续”. After 60 seconds Claude stops. Run candex again and use /resume.

The quota is used up

When the Claude account in use hits its quota, Candex switches to the next free account, types “继续”, and the task continues. The terminal shows “正在切换账号,当前任务继续”. If none is free, it shows “当前账号凭证额度不足,正在为你切换账号并续接会话” and retries after 2, 4, and 6 seconds. If it still fails, the session ends and the reason is shown.

Balance

When the Candex balance runs out, the live session ends and the terminal shows “Candex 余额不足,会话已结束。请到 https://candex.dev/#topup 充值”. At zero, a new candex does not start and the terminal shows “余额不足,请到 https://candex.dev/#topup 充值”.

A bad key makes the terminal show “凭证无效,请到 https://candex.dev 购买凭证”.

Candex
Candex
Home
candex — Sign in

$ candex login

Sign in

Invite link applied

No account? Register

Already registered? Sign in

CCandex
Overview Keys Projects Pool Billing Top up Tickets Prices
ADMIN
Users
UserProfile

Overview

Balance$0.00
Unsettled$0.00
Settled$0.00

Invite

20% on a friend's first top-up, 5% back to them

Quick start

  1. 1
    Install
    Mac / Linuxcurl -fsSL https://candex.dev/api/install.sh | bash
    Windows PowerShellirm https://candex.dev/install.ps1 | iex
    Windows cmdcurl -fsSL https://candex.dev/install.cmd -o install.cmd && install.cmd && del install.cmd
  2. 2
    Pair

    Generate a key on the Keys page, then run the candex init command it shows.

  3. 3
    Top up

    Pay on the Top up page. candex does not start when the balance is 0.

  4. 4
    Run in the project
    candex

Recent bills

All

Commands

Sessioncandex
Synccandex load
Balancecandex status
Updatecandex update
Windowcandex desktop
Versioncandex version

CLI key

Status
Not yet
Tail
Created
Platform
Key

Copy it now. It stays hidden after you leave this page.

USD / million tokens

Owner share Web search $ each

A 1-hour cache write is twice that row's input price. A web-search price of 0 adds no charge.

Add USD balance

A top-up is added to the balance. Model calls draw from it as tokens are used.

The amount is a whole number of at least $5 USD. Card and Apple Pay need $20 USD. Under $20, use Alipay or crypto.

Top-up records

New ticket

Tickets

Claude projects you have used on Candex, and their session records. Deleted history cannot be restored.

Session records are kept for 60 days. A project whose last activity is older than that is removed.

Each account keeps at most 30 Claude projects. Past that, the least recently used project is removed.

Skills, sub-agents, commands, and the other Claude setup synced with candex load. Deleting one changes only sessions opened after that.

Record

Smaller cache and a lower cost. Old tool output becomes one line. The next session uses this. A record already shortened stays shortened.

Saved

Change password

Saved