Reconnect
After a drop, reconnect before the countdown ends and the conversation continues.
$ candex
Changelog
Use Claude in the terminal. Write code with Claude Code.
curl -fsSL https://candex.dev/api/install.sh | bash
irm https://candex.dev/install.ps1 | iex
curl -fsSL https://candex.dev/install.cmd -o install.cmd && install.cmd && del install.cmd
Commands
candexcandex loadcandex statuscandex updatecandex desktopcandex versionAfter a drop, reconnect before the countdown ends and the conversation continues.
Priced per token. Open a bill to see the rate and the formula.
Install Candex, then run candex in a project directory to use Claude in the local terminal.
Candex opens Claude Code in the terminal to write code.
Reconnect within 60 seconds and the Candex conversation continues. After 45 minutes with no keystrokes and no new Claude output, the session ends.
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.
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.
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.
Install Candex, register and sign in, pair once with candex init, then run candex in a project directory.
Commands
candexcandex loadcandex statuscandex updatecandex desktopcandex versionWith 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.
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.
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.
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 购买凭证”.
curl -fsSL https://candex.dev/api/install.sh | bashirm https://candex.dev/install.ps1 | iexcurl -fsSL https://candex.dev/install.cmd -o install.cmd && install.cmd && del install.cmdGenerate a key on the Keys page, then run the candex init command it shows.
Pay on the Top up page. candex does not start when the balance is 0.
candexcandexcandex loadcandex statuscandex updatecandex desktopcandex version
Copy it now. It stays hidden after you leave this page.
A 1-hour cache write is twice that row's input price. A web-search price of 0 adds no charge.
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.