Welcome to shelltime! This guide will help you install the necessary tools using a simple command.
You can install shelltime tools by running the following command in your terminal:
curl -sSL https://shelltime.xyz/i | bashTo track cloud sessions in Claude Code (claude.ai/code), Google Antigravity (antigravity.google.com), or Cursor Cloud Agents (cursor.com), add this line to the environment's setup/install script:
curl -fsSL https://raw.githubusercontent.com/shelltime/installation/main/cloud.bash | bash- Claude Code cloud (
CLAUDE_CODE_REMOTE=true): Add your ShellTime API token to the environment as a network secret: allowed websiteapi.shelltime.xyz, headerAuthorization, prefixCLI. Anthropic's agent proxy adds it to the daemon's requests outside the session's VM, so sessions never see the token, and the host needs no network access setting. cloud.bash installs the CLI and daemon, connects Claude Code, and adds a SessionStart hook that signs in and starts the daemon in every session. An environment without network secrets can hold the token asSHELLTIME_TOKENin its environment variables instead, withapi.shelltime.xyzallowed by its network access; the hook uses it when it's set. Guide: Track your Claude Code cloud sessions. - Google Antigravity cloud (OS user
antigravity, orSHELLTIME_CLOUD=true): Commit.agents/hooks.jsonto your repository (shelltime agy install) and pass your ShellTime API token viaSHELLTIME_TOKEN(exported in the setup script or set in the project's environment variables). cloud.bash installs the CLI and daemon (automatically targeting theantigravityuser when setup runs asroot), savesSHELLTIME_TOKENinto~/.shelltime/config.yamlwhen present, and registers a SessionStart hook in~/.gemini/config/hooks.json(shelltime-cloud) that startsshelltime-daemonin every live session. Guide: Track Cursor and Antigravity with ShellTime. - Cursor Cloud Agents (
CURSOR_CLOUD=true/CURSOR_BACKGROUND_AGENT=true, orSHELLTIME_CLOUD=true): Commit.cursor/hooks.jsonto your repository (shelltime cursor install) and addSHELLTIME_TOKEN+SHELLTIME_CLOUD=trueto the environment's secrets. Runcloud.bashin the install step and~/.shelltime/bin/cloud-start.shin the start step (or runcloud.bashin the start step directly — whenSHELLTIME_TOKENis set, it signs in and startsshelltime-daemonimmediately). Guide: Track Cursor and Antigravity with ShellTime.
cloud.bash never fails the setup script, and outside a cloud environment (no CLAUDE_CODE_REMOTE=true, no antigravity user, no CURSOR_CLOUD/CURSOR_BACKGROUND_AGENT, and no SHELLTIME_CLOUD=true) it installs nothing.
Once the installation script finishes successfully, you should be able to track your shell time.
Visit shelltime.xyz for guides and usage documentation.
If you encounter any problems during the installation or have any questions, please:
- Check the output of the script for any error messages.
- Visit shelltime.xyz for general help and documentation.
- Open an issue on our GitHub repository
We hope you find shelltime useful!