helios docs
Everything you need to install helios, read your stats, and sync them to your site.
Quick start
1. Install helios
On macOS, Linux, or Git Bash on Windows:
curl -fsSL https://raw.githubusercontent.com/part-avocado/helios/main/install.sh | sh
On Windows, in PowerShell:
irm https://raw.githubusercontent.com/part-avocado/helios/main/install.ps1 | iex
2. Answer the setup questions
The installer finishes by running helios setup. It lists the tools it found and asks before each change:
- Keep Claude Code transcripts past 30 days.
- Add helios's hooks or plugin to Claude Code, Codex, Amp, OpenCode, Copilot, and Cursor.
Saying yes to each is the recommended setup. helios setup explains every question.
Then use your tools as you normally do.
3. See your time
Just this computer
Run helios for your timeline and project totals, or helios dashboard for charts in your browser. You need no account, and nothing leaves your computer.
On the website
To see every computer's hours in one place:
- Open the dashboard and sign in with Hack Club. Your first sign-in creates your account.
- Run the command the dashboard shows. Your terminal prints a code; type it on the site.
- Do the same on each computer you code on. Each one syncs by itself from then on.
Install
macOS, Linux, and Git Bash on Windows
curl -fsSL https://raw.githubusercontent.com/part-avocado/helios/main/install.sh | sh
Windows (PowerShell)
irm https://raw.githubusercontent.com/part-avocado/helios/main/install.ps1 | iex
What the installer does
- Downloads the right binary for your computer.
- Checks it against the release's
checksums.txt. This needssha256sum,shasum, oropenssl. Without one of them, it installs nothing. - Installs it to
~/.local/bin, or%LOCALAPPDATA%\Programs\helioson Windows. No admin rights are needed. - Adds that folder to your PATH.
- Runs
helios setup.
When helios starts working depends on which command you ran:
- The first command writes the PATH change to your shell's profile. Open a new terminal before you run
heliosyourself. - The PowerShell command also adds the folder to the window you installed from, so
heliosworks there straight away. Restart any other terminal that was already open.
Updating
| Command | What it does |
|---|---|
helios update | Installs the latest version. Running the install command again does the same. |
helios update -check | Only says whether a newer version is out. |
helios update v0.5.0 | Installs one version in particular, even an older one. |
helios update and the installer both run helios setup again with the new version, to bring hooks and plugins up to date.
Automatic updates
Once a day, a background sync checks for a newer release. When there is one, helios prints one line to say so. It installs nothing by itself.
To have helios update itself, run helios update -auto on. From then on, the daily check:
- installs each new release once it matches the release's checksums and runs as that version;
- keeps the version it replaced beside it, with
.oldon the end; - says that it updated, for three days.
After an update like this, run helios setup to bring hooks and plugins up to date. To stop automatic updates, run helios update -auto off.
The checksums come from the same release as the binary. So auto-update trusts GitHub and helios's release workflow as much as the installer does.
Installer options
These optional environment variables change what the installer does:
| Variable | Effect |
|---|---|
HELIOS_VERSION | Install a specific release, such as v0.1.0. |
HELIOS_INSTALL_DIR | Install to another folder. |
HELIOS_NO_MODIFY_PATH | Don't edit your shell profile or PATH. Print the line to add instead. |
HELIOS_NO_SETUP | Don't run helios setup afterwards. |
HELIOS_CLOUD | Set to 1 in a cloud environment, Codespace, or dev container. It sets up Claude Code and every other tool found, without asking. Also set HELIOS_SERVER and HELIOS_KEY there; see Claude Code in the cloud. |
HELIOS_BASE_URL | Download the binary and checksums.txt from this URL, such as a mirror, instead of the GitHub release. |
Install with Go
With Go 1.25 or later you can also run go install github.com/part-avocado/helios/cmd/helios@latest.
helios setup
helios setup first shows every place helios looks for logs, how many sessions it found, and when the newest one is from.
Then it offers each of these changes, one at a time:
- Keep Claude Code history. Claude Code deletes transcripts after 30 days by default. Setup offers to raise
cleanupPeriodDaysto 3650. - Add Claude Code hooks, which record your work as it happens. See Claude Code.
- Add Codex hooks. See Codex.
- Add the Amp plugin. See Amp.
- Add the OpenCode plugin. See OpenCode.
- Add Copilot and Cursor hooks. See Copilot and Cursor.
- Add Antigravity hooks. See Antigravity.
Note
Setup never changes anything without a yes. It keeps your own hooks and settings, saves a backup the first time it edits a file, and is safe to run again. Pass -yes to accept everything without prompts.
Set up one tool only
Name the tool: helios setup claude, codex, amp, opencode, antigravity, copilot, or cursor. You can name more than one.
Setup offers the Amp plugin even on a computer where Amp isn't installed yet, so the plugin is in place when Amp is.
Set up cloud sessions
Cloud sessions of a repository, such as Claude Code on the web or Codex cloud, need hooks in the repository itself. Run helios setup -project in the repository instead. See Remote sessions.
The report
Run helios to see the last 7 days, or helios -since 30d for longer. It prints two tables: the first lists your work blocks, and the second totals each project.
| Column | Meaning |
|---|---|
| ENGAGED | Time you were plausibly involved. This is the number that matters. |
| SPAN / SESSION TIME | Wall-clock time from first to last activity, for comparison. |
| PROMPTS | Prompts you sent that counted. |
| SKIPPED | Prompts that earned no time. |
| TOKENS IN/OUT | Tokens the model read (cached ones included) and wrote. |
| TOOLS | Which AI tools you used in that block. |
Two flags change how the report comes out:
-l(or--live) keeps it on screen and updates it as you work. Press Ctrl-C to quit.-jsonprints the report as data.
How a project is named
helios names a project by the first of these that it has:
- its git remote;
- its repository folder;
- its working folder.
So the same repository adds up across tools and clones.
A folder inside your home folder is written starting from it, as ~/code/app, and your home folder itself is written as home. That way the project key your site sees doesn't name your account on the computer.
Older versions of helios used the full folder path as the key. Projects recorded that way show up twice on your site: the old key holds the time from before the change, and the new key holds the time since. No time counts twice.
The dashboard
The dashboard shows an activity heatmap, daily totals, projects, tools, and recent work blocks. You can open it on the website, with an account, or on your computer, without one.
Reading the graphs
The graphs are interactive:
- Hover a day, bar, or tool for the details.
- Click a day on the heatmap, or a bar, to list that day's work blocks. On the yearly chart, a bar lists a week.
- Click a project in the table to see only that project. Every number and chart follows it. Click it again, or the chip at the top, to clear it.
On the website, with an account
The dashboard on the website adds up the hours from every computer you code on. Only you and your server's reviewers can see it. Your public profile shows a summary to anyone.
- Open the dashboard and sign in with Hack Club. Your first sign-in creates your account.
- Run the command the dashboard shows. Your terminal prints a code; type it on the site. That connects this computer to your account. Do the same on each computer you code on.
- Keep working. The page fills in as soon as the first sync arrives. helios syncs again each time a reply finishes in Claude Code or Amp, or you stop one. Run
helios syncto update it right away.
Projects
The Projects page lists every project you've worked on. Open one to see that project on its own. A project's page also has its settings:
- Public: whether your public profile names it.
- The GitHub repositories linked to it, which you can add or remove.
Settings
Settings has the rest:
| Pane | What it's for |
|---|---|
| Setup | What to run to connect another computer, and your sync keys. A sync key only uploads stats. Each computer gets its own, and cloud sessions (Claude Code in the cloud, Amp threads) get one named "Cloud sessions". Revoke one and only it stops working. |
| Computers | Each computer that syncs to you and when it last did. Remove one to drop its hours. |
| Data | Upload a stats file from a computer that can't reach the website, or download a copy of everything the site holds about you. Make the stats file with helios export -o stats.json, and upload it within 7 days. |
| Account | Your name, Slack ID, and member-since date from Hack Club Auth, signing out, and deleting your account. Deleting removes every computer and all of your stats from the site. |
You can sign out from the sidebar, or on a narrow window from the menu at the top right.
A computer syncs to one account. To move it to another, remove it under Computers first.
On your computer, without an account
Run helios dashboard to open the same charts with live data from this computer, refreshed every 30 seconds. It runs on localhost only and refuses requests from other sites, so your stats never leave your computer.
Your public profile
Every account has a public profile at /@handle, which anyone can open without signing in.
It shows your handle, the month you joined, your hours in the past year, a year of days, and your projects. It never shows your name, your Slack ID, or a folder on your computer.
Which projects it names
- A project that is a repository on a public host, such as
github.com/you/site, is public by default. The profile names it and links to its repositories. - Any other project is only counted, as one of your other projects, until you make it public.
Turn Public on or off on each project's page.
Your handle
Each account starts with a neutral handle, such as u-3f9a0c12b4d1, never one made from your name. When you change it, the old address stops working.
Profile settings
Under Settings, Profile, you can:
- change your handle;
- make the whole profile private;
- copy a badge of your hours to paste into a README, linked to your profile.
A private profile answers "no such profile", as a banned or deleted account does. So its address doesn't say that the account exists.
Verification keys
Every sync and export carries a verification key. It is an Ed25519 signature, made by your account, over the report's numbers, the time it was made, and the time it expires. Change one minute of engaged time, the account, or a date, and the key no longer matches.
The website refuses a report that:
- has no key, or a key that doesn't match its contents;
- is more than 7 days old, so an old or reused file can't stand in for current numbers;
- claims to be made in the future, or contains activity after the time it was made.
Each computer's key is created the first time it syncs or exports. It is kept in helios's data folder as account.key. Settings lists your computers by the ID of that key, such as td-4283292a8f76.
Warning
Verification proves a file wasn't edited after helios export made it. Because the account key lives on your computer, a file alone can't prove the numbers are real. For hours that count, sync.
Tokens
Where token counts come from depends on the tool:
| Tool | Where its counts come from |
|---|---|
| Claude Code | The usage record it saves with each response. A response that's written several times, or copied into a resumed session, counts once. |
| Codex | The usage record it saves with each response. Counts are taken from the increase in its running totals. |
| Amp | The usage Amp hands the helios plugin when a turn ends. This starts with helios v0.6.0, so Amp turns recorded before that show no tokens. |
Claude Code
helios counts Claude Code in two ways: it reads the transcripts Claude Code saves, and, with hooks installed, it records each event as it happens.
Transcripts
helios reads transcripts from $CLAUDE_CONFIG_DIR (which may list several folders), ~/.claude, and ~/.config/claude.
It tells your prompts apart from tool results, compaction summaries, background notices, and subagent activity. Subagent transcripts are ignored: their time, tokens, and edits do not count.
Hooks
With hooks installed, Claude Code runs helios hook claude-code when a session starts or ends, when you send a prompt, and when Claude finishes.
Each run adds one line to a local journal. The line holds the time, session, folder, and the prompt's word counts and fingerprint, never its text. If Claude Code deletes a transcript, the journal still has that session.
Claude Code in the cloud, Codespaces, and remote machines
Which setup fits depends on whether the machine lasts.
A machine you keep, such as an SSH box
Install helios there and connect it like any computer. With no browser on it, you have three ways to connect:
- A code. Run
helios login -server https://your-site -no-open. It prints a code to type on the site from any other device. - A sync key. Make one under Settings on the site and run
helios sync -server https://your-site -key tdk_…. - Environment variables. Set
HELIOS_SERVERandHELIOS_KEYin the box's environment. This needs no login. Hooks then send each event as it happens and sync in the background, just as after a login.
The box keeps its own journal, is listed as a computer of its own, and syncs in the background.
A machine that goes away: cloud sessions, Codespaces, dev containers
Transcripts and the journal in a cloud container disappear with it. So there helios sends each hook event straight to your site instead of keeping a journal. This is called cloud mode.
Cloud mode is on when both of these are true:
HELIOS_SERVERandHELIOS_KEYare both set.- One of
CLAUDE_CODE_REMOTE,CODESPACES, orHELIOS_CLOUDis1ortrue. Claude Code on the web sets the first by itself, and GitHub Codespaces sets the second.
To set it up:
- On the site, make a key under Settings.
- Add two secrets to the environment:
HELIOS_SERVER(your site) andHELIOS_KEY(the key). For Codespaces, add them as Codespaces secrets of your account or the repository. Also setHELIOS_CLOUD=1, unless the environment setsCLAUDE_CODE_REMOTEorCODESPACESitself. - Add this to the environment's setup script. For a Codespace or dev container, add it to
postCreateCommandindevcontainer.json:
curl -fsSL https://raw.githubusercontent.com/part-avocado/helios/main/install.sh | HELIOS_CLOUD=1 sh
That line installs helios, creates ~/.claude if no Claude Code folder exists, and adds the hooks of every tool it finds, without asking.
To check, run helios doctor. It says whether cloud mode is on, and which secret is missing when it is not.
Or commit the hooks to the repository
If you can't edit the environment's setup script, run this once in the repository, on your own computer, and commit the file it writes:
helios setup claude -project
It adds hooks to the repository's .claude/settings.json, keeping whatever is there. You still add the two secrets to the environment.
What the committed hooks do depends on where they run:
- Where
HELIOS_KEYis set, the session's start installs helios if it is missing. Each prompt and reply then runshelios hook claude-code -project, found onPATHor in~/.local/bin. - Where
HELIOS_KEYis not set, they do nothing. Nothing is installed or recorded for teammates who don't use helios. - Where your own Claude Code settings already have helios's hooks, they also do nothing, so each event is recorded once. That is the case on your own computer, or on a machine the setup script set up.
If the repository's hooks don't end in -project, an older helios added them, and those don't check for your own hooks. Run helios setup claude -project again and commit the change.
To take the hooks out again, run helios setup claude -project -remove-hooks.
What cloud mode sends
Each event goes to your site as it happens. It holds what a journal line holds: the time, tool, session, and a prompt's word counts and fingerprint, never its text.
The site can't look the folder up later, so the event also carries:
- the repository, named from its
originremote, without any sign-in the remote holds; - the folder's path inside the container, such as
/home/user/repo.
A reply's end also carries the tokens and lines of that turn, read from the transcript, and your commits in the repository since the last one.
No sync runs there, and no account key is made.
How cloud sessions are counted
- One computer. Cloud sessions all count as one computer, called "cloud", however many containers ran them. So a new container never adds a computer to your list.
- No clock correction. That computer's records are used at the times the container gave them.
- No time zone of its own. Its days are counted at the UTC offset your own computers pinned for your account.
- No subagents. Subagent activity is not counted there either.
Codex
Logs
helios reads Codex's session logs, called rollouts, from $CODEX_HOME or ~/.codex. It looks in both sessions and archived_sessions, and reads compressed .jsonl.zst files too. It handles both the older and the current (0.147 and later) log formats.
Subagent and reviewer sessions never count as your prompts.
Hooks and notify
helios setup also adds two things to Codex:
- Hooks, in
~/.codex/hooks.json. With them, each prompt and turn end reaches your site as it happens. - A
notifyline, in~/.codex/config.toml. It syncs when a turn ends. If yourconfig.tomlalready has anotifyprogram, helios leaves it alone.
Important
Codex skips new hooks until you trust them. Open Codex, run /hooks, and trust helios's.
The notify line needs no trust step, so Codex syncs on its own either way.
Remote machines and the cloud
On an SSH box, Codespace, or cloud container, set helios up as for Claude Code. Two things differ for Codex:
- The hooks still need the trust step, which a setup script can't do. Run
/hooksonce in each new container, or they are skipped. - Until then, only
notifyruns, and it reports turn ends, not prompts. In cloud mode there is no sync to read the rollouts later. So a container whose hooks were never trusted earns no time.
Amp
Amp keeps threads on its servers, so helios can't read them from your computer. Instead, helios setup (or helios setup amp for Amp alone) offers to write a plugin to ~/.config/amp/plugins/helios.ts.
The plugin records when a thread starts, when you send a prompt, and when Amp finishes. It writes to the same journal as the Claude Code hooks.
New Amp threads load the plugin automatically. In threads that are already open, run plugins: reload.
Threads in Amp's cloud
Threads you start in the Amp app or on ampcode.com run in Amp's cloud, not on your computer, so that plugin can't see them. A second plugin, helios-cloud.ts, counts them. It goes in your personal Amp plugins, which Amp loads in every cloud thread.
Set it up
- On your helios site, open Settings, Setup, and choose Amp under “Check your tools”.
- Make a sync key with Make a key for Amp, under the prompt shown there. It shows once, and is listed under your sync keys as "Cloud sessions".
- Paste the prompt into any Amp thread. Amp adds the plugin and two values to its Secrets & Env Vars settings:
HELIOS_SERVER, your site's address, andHELIOS_KEY, the sync key. Amp asks you for the key in a private dialog, so it stays out of the thread.
What the plugin does
In a cloud thread, the plugin downloads helios and checks it against the release's checksum. It then runs helios when you send a prompt and when Amp finishes. Each run sends your site one line:
- Every line holds the time, thread, folder, repository, and the prompt's word counts and fingerprint, never its text.
- When Amp finishes, the line also holds the tokens the turn used and the lines its file edits added and removed, never the code.
Your site keeps these lines for a year.
At the end of each turn helios also sends your commits in the thread's repository, as helios sync does on a computer. So they show in the review app's graphs and can be checked against GitHub.
How cloud time is counted
No computer of yours is needed. When Amp finishes a turn or you stop it, the helios in that thread:
- reads all of your cloud lines back from your site;
- counts them with the same rules as everything else;
- syncs the result.
Threads that ran side by side are counted together, so their overlap counts once.
Your cloud threads show up as one entry under Settings, Computers, named “Cloud sessions”.
Note
Cloud time reaches your dashboard when Amp finishes a turn or you stop it. Its days are split at midnight UTC, because a cloud thread doesn't know your time zone.
Threads on your Mac
The Mac app's threads can also run on your Mac instead of the cloud. Open the app's App Settings, Runner, turn it on, and pick “This Mac” when you start a thread. Those threads are recorded by the first plugin.
Set up with a prompt
The dashboard's setup steps include a prompt to paste into Amp or Claude Code, with your server already filled in. The agent then:
- installs helios;
- runs
helios setup -yes, to add the hooks and the plugin without stopping to ask; - runs
helios loginand shows you the code to type on the site; - shows you the result.
-yes is what lets an agent finish setup, since setup otherwise asks before changing any settings and an agent can't answer. The prompt holds no key, so nothing secret ends up in that thread.
Copilot and Cursor
helios setup adds hooks for both tools:
| Tool | What setup does |
|---|---|
| GitHub Copilot CLI and VS Code's Copilot agent | Writes ~/.copilot/hooks/helios.json. |
| Cursor | Adds helios's hooks to ~/.cursor/hooks.json, keeping any hooks of your own. Restart Cursor to load them. |
Neither tool keeps transcripts helios can read. So their time comes from the hooks alone, and only reaches your site once this computer is set up with helios sync.
Copilot CLI's hooks name no session. So helios names one after the folder it runs in: a hash of its path, never the path itself.
Remote machines and the cloud
On an SSH box, Codespace, or cloud container, set helios up as for Claude Code.
With HELIOS_CLOUD=1 the installer sets up Copilot and Cursor too, where their ~/.copilot or ~/.cursor folder exists. If Copilot has not made its folder yet, run helios setup -yes copilot, which makes it.
Their hooks then send each event straight to your site.
OpenCode
helios setup (or helios setup opencode) writes a plugin to ~/.config/opencode/plugins/helios.ts. When $OPENCODE_CONFIG_DIR is set, it goes in that folder's plugins folder instead. OpenCode 1 and 2 both load it.
The plugin runs helios hook opencode when you send a prompt and when a turn ends, whether it finished, failed, or was stopped. It records the time and folder, never the prompt text.
Two limits:
- Prompts in a subagent's session come from the agent, so they aren't counted as yours.
- OpenCode keeps its history in a database helios doesn't read, so time before the plugin was added doesn't count.
Antigravity
helios setup (or helios setup antigravity) offers to add a helios group to Antigravity's global hooks file, ~/.gemini/config/hooks.json. The App, the CLI, and the IDE all read that file. Your other hook groups are kept.
What the hooks record
The group runs helios hook antigravity on three events:
| Event | Recorded as |
|---|---|
SessionStart | the session starting |
PreInvocation, on an execution's first model call | your prompt, scored for effort and repeats, then thrown away |
Stop | the turn ending |
Two things to know:
- Antigravity runs
PreInvocationbefore every model call. Only the first call of an execution follows a prompt of yours, so helios skips the rest. - Antigravity's hooks report no tokens, so its turns show no token counts.
Each hook prints {}, which is what Antigravity needs from a hook that changes nothing.
Check that the hooks loaded
In the app, open the agent side panel, then Customizations, then Hooks. In the CLI, run /hooks.
Remove the hooks
helios setup -remove-hooks antigravity takes the group out again.
For Antigravity on a remote machine, see Remote sessions.
Remote sessions
Some agents work on a machine that goes away: Claude Code on the web, Codex cloud tasks, a Codespace, or OpenCode or Antigravity on a remote VM. There helios runs in cloud mode.
Cloud mode in short
- Each hook event goes straight to your site.
- Every cloud machine counts as one computer, called "cloud".
- It is on when
HELIOS_SERVERandHELIOS_KEYare set, together with one ofHELIOS_CLOUD=1,CLAUDE_CODE_REMOTE=true(Claude Code on the web sets it), orCODESPACES=true.
Claude Code in the cloud describes it in full.
Commit hooks that install helios
A cloud machine starts from your repository and has no helios of its own. So commit hooks that install it:
helios setup -project # Claude Code, Codex, Antigravity, and OpenCode
helios setup codex -project # or only the tools you name
| File | For |
|---|---|
.claude/settings.json | Claude Code on the web |
.codex/hooks.json | Codex cloud |
.agents/hooks.json | Antigravity on a remote machine |
.opencode/plugins/helios-project.ts | OpenCode on a server |
Your own settings in those files are kept.
How the committed hooks behave:
- Without
HELIOS_KEY, they do nothing. So nothing changes for a teammate who doesn't use helios. - At a session's start, they install helios if it is missing. They use the installer, which checks the release's checksums.
- On your own computers, they don't record twice. The Codex, Antigravity, and OpenCode hooks record only in cloud mode; on your own computers, the hooks
helios setupadds there record the session. Claude Code's stand down where your own settings already run helios's hook.
Set up an environment
- Run
helios setup -projectin the repository, then commit and push. - Under Settings, Setup, on your site, make a sync key named after the environment.
- In the environment's settings, set
HELIOS_SERVERto your site andHELIOS_KEYto that key. Outside Claude Code on the web and Codespaces, also setHELIOS_CLOUD=1. - Let the environment reach your site, and
github.com,raw.githubusercontent.com, andobjects.githubusercontent.com, which it needs to install helios. For Claude Code on the web, use Limited network access and add your site under Allowed domains.
Warning
Anyone who can use the environment can read its variables. A sync key can only upload stats, and you can revoke it under Settings at any time.
Notes for each tool
| Where | What to know |
|---|---|
| Claude Code on the web | Runs a repository's hooks in a session with one repository. |
| Codex cloud | Codex runs a repository's hooks once they are trusted. Check your dashboard after the first task, since a cloud task may not run them. |
| OpenCode on a server | The plugin runs in the opencode serve process. Set the variables where it starts. |
| Antigravity, remote | The workspace's .agents/hooks.json runs on the machine the agent works on. |
| Amp's cloud | Has its own plugin: see Amp cloud threads. |
A remote machine you keep
A remote machine you keep can instead run the installer and helios login, like any computer.
Remove the hooks
helios setup -project -remove-hooks takes the hooks out again.
Connectors
Chat apps have no hooks, but they can add a connector: a remote MCP server. Your site is one, at /mcp.
Add it to a chat app, and that app's chats add to your hours. It works with Claude on the web (claude.ai), the Claude desktop and mobile apps, ChatGPT, or any app that takes a remote MCP server with OAuth.
Add it
- In Claude, open Settings, then Connectors, and choose Add custom connector. Other apps have a similar place.
- Give it your site's address followed by
/mcp, such ashttps://helios.example/mcp. Other apps ask for the same address. - The app sends you to your site, which shows what the connector will do. Choose Allow.
Your site makes the app a sync key named after it, such as "Claude connector". To disconnect the app, revoke that key under Settings, Setup.
What it records
The connector gives the model two tools:
| Tool | What it does |
|---|---|
helios_log | The model calls it with start when it begins a reply and end when it finishes. Each call is one record, a prompt or a turn end, like the ones a harness's hooks send. |
helios_stats | Reads your hours, per day and per project, to answer questions such as "how much did I work this week?" |
A record carries:
- the conversation, as a digest of the name the model gives it;
- the word count of your message;
- the repository, if you name one.
It never carries your message or the reply.
How chat time counts
- Time. The site stamps each record with the time it arrives, so a chat's time is witnessed like any other. It is credited by the same rules as any other tool's.
- Tool name. A chat counts under the app's own name, such as
claude-aiorchatgpt, so reviewers can tell chat time from time in coding tools. - Project. Chats name no project unless the model passes a repository, such as
github.com/owner/name. Without one, they show as the app's chats.
Note
The model decides when to call the tools. A chat in which it doesn't call them adds nothing. If yours skips them, ask it to log the conversation with helios.
Add your own harness
Any tool can report to helios. Run helios hook <tool> with one JSON object on stdin:
{"session_id": "abc123", "cwd": "/home/me/project", "hook_event_name": "prompt", "prompt": "add a login page"}
The tool name is yours to choose, from lowercase letters, digits, and dashes.
| Field | Meaning |
|---|---|
session_id | Required. One conversation or thread. |
hook_event_name | Required, unless you pass -event instead. One of prompt, turn_end, session_start, session_end, or edit. |
cwd | The folder, which names the project by its git remote. Only the project key leaves the computer. |
prompt | For prompt events. It is scored for effort and repeats on the computer, then thrown away. Its text is never stored or sent. |
tokens_in, tokens_out, lines_added, lines_removed | Optional, on turn_end or edit. |
What helios does with an event
helios writes the event to the local journal. Once the computer is connected, it also sends the event to your site as it happens.
It never gets in your tool's way:
- It always exits 0.
- For a tool of your own, it prints nothing on stdout. A built-in harness gets the one reply it needs there, such as Cursor's
{"continue":true}. - If an event can't be written, the reason goes to stderr.
Test an adapter
helios hook -check <tool> prints the record a payload would make and writes nothing.
Connect your tool
- A tool with a hooks file in Claude Code's shape: point its prompt and stop hooks at
helios hook mytool. - A tool with plugins: run the same command from the plugin, as helios's own Amp plugin does with
helios hook amp.
Lines of code
What helios sends about commits
When a computer syncs, helios also sends your site one record for each commit of yours, in each project with a git remote. A record holds the commit's SHA, author time, and lines added and removed, never its message or code.
Commits earn no time.
Checking commits against GitHub
Your profile links a public repository's latest commits. Once an hour the site asks GitHub which of them exist, so a reviewer can spot a claimed commit that GitHub doesn't have.
For each commit GitHub has, the review app also:
- shows the GitHub account it is linked to;
- marks it if its claimed time differs from GitHub's author date. The SHA pins that date, so a difference means the time was changed after the commit was made.
A private repository's commits are shown as not checked.
The check needs a GITHUB_TOKEN secret on the Worker. Without one, the review app says so.
Lines in the report
For each project the report shows three counts:
| Column | Meaning |
|---|---|
| AGENT LINES | The lines agents changed. |
| KEPT | How many of the lines agents added later turned up in your commits. |
| COMMITTED | The lines your own commits added. |
The code itself is not kept.
Commands and flags
See your time
| Command | What it does |
|---|---|
helios | Print your timeline and project totals. |
helios dashboard | Open the live dashboard on localhost. Takes -addr (default 127.0.0.1:7878) and -no-open. |
helios -version | Print the installed version. |
helios takes these flags:
| Flag | Default | Meaning |
|---|---|---|
-since | 7d | How far back to count, such as 24h or 30d. |
-json | Print the report as JSON. | |
-l, --live | Keep the timeline on screen, updating it as you work. | |
-every | 3s | With -live, how often to reread the logs. |
-verbose | List log files that couldn't be read. | |
-claude-dir, -codex-dir | Look for logs in these folders instead (comma-separated). |
Set up and check
| Command | What it does |
|---|---|
helios setup | Check tools, keep history, install hooks and the Amp and OpenCode plugins. |
helios setup amp | The same, for only the tools you name: claude, codex, amp, opencode, antigravity, copilot, or cursor. |
helios setup -project | Put hooks in this repository, for you to commit, for cloud sessions. It writes Claude Code's .claude/settings.json, Codex's .codex/hooks.json, Antigravity's .agents/hooks.json, and an OpenCode plugin. Name tools, as in helios setup claude -project, to write only theirs. |
helios status | Show the account this computer syncs to, whether each tool's hooks are installed, what is waiting to send, and when it last synced. |
helios doctor | Check everything that decides whether your time counts, and say how to fix each problem. It checks this binary, the site and key, the clock, each tool's hooks, records waiting to send, the last background error, and updates. Exits 1 when something needs fixing. It never prints your key. |
helios hook -check <tool> | Print the record a hook payload on stdin would make, and write nothing. |
helios setup takes -yes and -remove-hooks, before or after a tool's name.
Sync and export
| Command | What it does |
|---|---|
helios login | Connect this computer by typing a code on the site, instead of copying a key. Pass -server URL the first time. -no-open prints the address instead of opening a browser. |
helios sync | Send your records to your account. Pass -server URL -key KEY the first time; both are remembered. -dry-run prints the records it would send, and sends nothing. |
helios export | Write a signed report to upload under Settings on the website. Takes -o file and -since (default 365d). |
Update and uninstall
| Command | What it does |
|---|---|
helios update | Download the latest helios, check it against the release's checksums, replace this one with it, and run setup again. |
helios update -check | Only say whether a newer version is out. |
helios update v0.5.0 | Install that version, even if it is older. |
helios update -auto on | Install new releases automatically from now on. -auto off stops it. |
helios uninstall | Remove helios's hooks, Amp and OpenCode plugins, and PATH line, ask about the journal folder, and delete the binary. Takes -yes and -keep-data. See Uninstall. |
Files and folders
helios keeps its own files in one folder, the journal folder:
| System | Journal folder |
|---|---|
| macOS | ~/Library/Application Support/helios |
| Windows | %LOCALAPPDATA%\helios |
| Anywhere else | ~/.local/share/helios |
Set HELIOS_DATA_DIR to use another folder.
| What | Where |
|---|---|
| Hook journal | The journal folder. |
| Server and sync key | server and key in the journal folder. HELIOS_SERVER and HELIOS_KEY override them. |
| Account key | account.key in the journal folder. Keep it private. Deleting it starts a new account. |
| Project words | vocab in the journal folder. It holds the identifiers in each project you worked on in the past week. A background sync saves it once a day, so that hooks count your project's own names as words. They never leave your computer. |
| Claude Code hooks | The hooks setting in Claude Code's settings.json. |
| Amp plugin | ~/.config/amp/plugins/helios.ts |
| Settings backups | settings.json.helios-backup, next to the original. |
Sync
helios sync sends your records to your account on the site. There is one record for each prompt and each turn end. A record holds its time, word counts, tokens, and lines, never its text.
The first sync sends the past year. Later ones send only what changed.
Connect a computer
Before a computer can sync, connect it:
helios login -server https://your-site
- helios prints a code such as
BCDF-GHJKand opens the site's connect page. - Sign in and type the code.
- Check that the computer ID on the page matches the one in your terminal.
helios then saves a sync key for this computer and syncs. Each computer gets its own key. They are listed under Settings, Setup, by computer ID, so you can revoke one without touching the rest.
A code lasts 10 minutes and works once. It has to be typed, not followed from a link, so nobody can send you a link that connects their computer to your account.
Warning
Never type a code someone sent you. Allowing a code gives that computer a sync key to your account. The connect page says when and from where each code was asked for.
A computer with no browser
Make a sync key for it under Settings, Setup. Then run this on that computer:
helios sync -server https://your-site -key tdk_…
After the first sync
helios remembers the server and the key, so later it's just helios sync.
Hooks also sync in the background when a reply finishes or you stop one:
- Amp reports a stopped reply at once.
- Claude Code runs no hook when you stop a reply, so that sync happens at your next prompt or when the session closes.
- Codex syncs through its
notifyprogram when a turn ends.
The key only sends records. It can't read or change your account or settings. If the server answers that it needs your sync key, run helios login again.
Who can see your stats
On the website, your stats are visible to you and to reviewers. Beyond that, anyone can see what your public profile shows.
- A reviewer sees, for each project, your total and a timeline of your work blocks: when each started and ended, with its prompts, tokens, and lines changed.
- Neoadmins and superadmins see everything you synced.
Deleting your account, under Settings, removes your stats. Admins keep your Slack ID and a record of what your computers reported, without project names.
Who credits your hours
helios itself credits nothing. Programs that pay or credit hours read your time through the Stats API and decide what counts.
To host the site yourself, see Running a server.
Running a server
The site is one Cloudflare Worker. It uses:
- a D1 database, for summaries;
- an R2 bucket, for every report and per-prompt record;
- a Durable Object per account, which takes records as they arrive and pushes them to open dashboards.
The website, on Cloudflare
The Worker is in the worker folder of the repository and serves the pages in site. You need a Cloudflare account and Node.js 22 or later.
Try it on your computer
cd worker
npm install
cp .dev.vars.example .dev.vars
npm run dev
.dev.vars signs every visitor in as the Slack user ID in DEV_LOGIN, which only works on localhost. Open the address it prints and follow the setup steps on the dashboard.
Put it online
Connect the repository to Cloudflare. Nothing needs to be installed or signed in on your computer.
- In the Cloudflare dashboard, open Workers & Pages, then Create, then Import a repository. Choose your fork of the repository.
- Name the Worker
helios. Set the root directory toworker, the build command tonpm ci, and the deploy command tonpm run deploy. Save and deploy. The first deploy creates the D1 database, its tables, and an R2 bucket that keeps every report for reviewers. It runs without the secrets, and the site says it is not set up yet. - Create a Hack Club Auth app as in Set up sign-in below. Give it the
openid,profile, andslack_idscopes, andhttps://<worker>.<your-subdomain>.workers.dev/auth/callbackas its redirect URI. Cloudflare shows the address under the Worker's Settings, Domains & Routes. - Under the Worker's Settings, Variables and Secrets, add these as secrets:
SESSION_SECRET(any long random text),HCA_CLIENT_ID,HCA_CLIENT_SECRET, andADMINS. Deploying again, which a push to the branch does, keeps them.
If the deploy fails:
- The bucket needs R2 turned on for your Cloudflare account. You do that once, under R2 in the dashboard.
- Permissions for D1 or R2: open the Worker's Settings, Builds, and give its API token D1 Edit and Workers R2 Storage Edit access.
Deploy from your computer instead
Run npx wrangler login in worker, then npm run deploy. Add the secrets in the dashboard or with npx wrangler secret put <NAME>.
Important
Deploy with npm run deploy, not npx wrangler deploy alone. npm run deploy applies the D1 migrations before the new code goes live. If you deploy by hand, run npx wrangler d1 migrations apply DB --remote first.
The order matters because the code reads columns that migrations add. For example, migration 0026_capped_days.sql adds prompt_days.uncapped_seconds, which every flush of a day's records writes. Code deployed before that migration is applied fails each flush until it is, and the records wait in the meantime.
Settings
| Setting | Meaning |
|---|---|
SESSION_SECRET | Signs sign-in cookies. Changing it signs everyone out. |
HCA_CLIENT_ID, HCA_CLIENT_SECRET | Your Hack Club Auth app. |
ADMINS | Slack user IDs of the superadmins, separated by commas. They add everyone else who reviews, in the review app. |
GITHUB_TOKEN | Optional secret. Lets the hourly check ask GitHub which claimed commits exist, when GitHub dates them, and whose they are. Without it, commits are linked but not checked, and the review app says so. |
MIN_VERSION | Optional variable, such as v0.6.0. Older helios versions, and ones too old to say their version, are told to run helios update and can't sync until they do. Empty accepts every version. Raise it only for a fix that needs it: the records of those versions wait on their computers and arrive so late that their time isn't credited. |
UPLOAD_BURST | How many uploads one account may send at once: 1,000, which come back one a second. |
RECENT_RECORDS_PER_DAY | How many records dated in the last two days one account may send a day: 30,000. |
OLD_RECORDS_PER_DAY | How many older records one account may send a day: 100,000, for a first sync of a year. Set it higher if you need to import more. |
REPORT_BYTES_PER_DAY | Optional variable. How many bytes of signed reports one account may upload a day: 256 MB when empty. Past it, the site answers 429. Only each account's newest 20 reports that failed their signature check are kept in full. |
About the three upload limits:
- Past one of them, the site answers 429 and helios keeps the records to send later.
- The defaults are about ten times the heaviest honest use.
- Records held back more than 5 minutes arrive late and aren't credited, so lower the limits with care.
To change a secret later, edit it in the dashboard.
For your own domain, add a custom domain to the Worker and use it in the redirect URI.
Cloudflare accepts uploads of up to 100 MB.
The review app
Reviewing has its own app at /review/, apart from the rest of the site. Reviewers get a Review link in the top bar.
Levels
What a reviewer can do depends on their level:
| Level | Who | What they can do |
|---|---|---|
| Superadmin | The Slack IDs in ADMINS. | Everything below, and add or remove neoadmins. |
| Neoadmin | Added by a superadmin. | Read every account: its computers, its projects, and a log of every report it sent. Each log entry shows what the report held and which days and projects changed, and links to the report itself, kept as it arrived. Add and remove reviewers. Ban people. |
| Reviewer | Added by a neoadmin or superadmin. | Look a person up by Slack ID and read their total for each project, with each project's graphs, and their time through the Stats API. Nothing else of theirs. |
Add someone or ban someone
Levels and bans are set on a person's account view, in its Access and Bans panels.
To add someone, look up their Slack ID in the app and choose a level in the Access panel of their account view.
A Slack ID that has never signed in opens a view with only those two panels. So a person can be added or banned before their first sign-in.
No one can add, remove, or ban someone at their own level or above. So a neoadmin can't touch another neoadmin.
The Reviewers and Bans pages list who holds each level and every ban, and link to each account view.
Project activity
Each person's page has a Project activity panel. For one project at a time, it draws:
- engaged time and lines added and removed per day;
- when in the week they work;
- every work block's length against the share of it that was engaged.
It also checks the blocks for things to ask about:
- time counted on two computers at once;
- long blocks without breaks;
- lines changed without a prompt;
- very many lines per hour;
- days over 14 hours.
A check that stands out is a reason to ask, not proof.
Bans
A ban has no length. It lasts until someone lifts it. It always has a reason, which only reviewers see.
While a ban holds:
- The site takes nothing new from the person: no syncs, uploads, or cloud events.
helios sync, their dashboard, and their settings say plainly that they are banned until a reviewer lifts it, but not why.- They can still sign in and see what they had.
- The review app marks them in red wherever they appear.
- If they are a reviewer, they can't review.
Someone below the level of whoever issued a ban can't lift or replace it.
API keys
Any reviewer can make API keys, under API keys in the app, for a script or a bot.
- A key acts as the person who made it, at the level they hold when it is used.
- It stops working when they are removed or banned.
- It is shown once, in a popup to copy it from. The site keeps only its hash.
Send it as a bearer token:
curl -H "Authorization: Bearer tdr_..." "https://your-site/api/review/person?slack=U012ABCDEF"
Stats API
Programs that credit hours, such as a You Ship, We Ship, read people's time here instead of taking submissions.
It is protected. Call it with a review key, made under API keys in the review app by someone with a place there. What the key sees depends on who made it:
- A reviewer's key sees project names only.
- A neoadmin's or superadmin's key also sees each project's key, such as
github.com/you/site.
curl -H "Authorization: Bearer tdr_..." "https://your-site/api/review/stats?slack=U012ABCDEF&start=2026-01-01&end=2026-03-31"
| Parameter | Meaning |
|---|---|
slack | The person's Slack ID. Neoadmins and superadmins may send id, the account number, instead. |
start, end | Optional. Days, such as 2026-01-31, on the person's own clock, both included. Without them, all of their time. |
project | Optional. Project names, separated by commas, or keys for neoadmins and superadmins. Without it, every project. |
flags | Optional. true reads the records behind the answer, at most 400 days of them, and lists flags for someone to look at. |
The answer has these fields:
| Field | What it holds |
|---|---|
person | slack_id, name, created_at, and deleted_at. |
ban | reason and at, or null. |
witnessed_seconds, unwitnessed_seconds, prompts | The person's three counts. |
projects | The projects, most witnessed time first. Each has name, key, the same three counts, first_day, and last_day. |
days | Each date, with the same three counts. |
flags | Only when asked for. Each has kind and text. |
Time on two projects at once counts once in the totals, and is split equally between those projects. So a person's projects add up to their total.
The answer is up to the moment.
The API only reports. Which time to credit, whether to count unwitnessed time, and how to treat a ban or a flag are the program's to decide.
Public API
Anyone with an account can read their own stats from a script, or let another site read them, for example to list your projects when you sign in there.
Make a read key under Settings, API. A read key:
- starts with
tdp_and is shown once; - can only read. It can't upload, change, or delete anything;
- doesn't sync. Likewise, your sync key doesn't work here;
- reads nothing while your account is banned.
curl -H "Authorization: Bearer tdp_..." "https://your-site/api/public/v1/projects"
| Call | What it returns |
|---|---|
GET /api/public/v1/me | name, slack_id, created_at, engaged_seconds in the past year, and synced_at. |
GET /api/public/v1/projects | projects, most time first, each with name, repo (such as github.com/you/site, or null for a project that is only a folder), engaged_seconds, first_active, and last_active. |
GET /api/public/v1/days?since=2026-01-01 | days: each date with its engaged_seconds. since is optional. |
GET /api/public/v1/users/{handle} | Anyone's public profile, with no key: handle, joined (YYYY-MM), engaged_seconds in the past year, days, projects (each with name, repo, and engaged_seconds), and other_projects (count and engaged_seconds). A private, banned, or unknown profile answers 404. Answers may be cached for a minute. |
GET /api/public/v1/users/{handle}/badge.svg | A badge of the profile's hours for a README, with no key. Add ?project= and a repository or project name the profile names for one project's hours. It shows only what the profile shows: a private, banned, or unknown profile, or a project the profile doesn't name, answers 404. Answers may be cached for 5 minutes. |
Good to know:
- Times are Unix milliseconds.
- Answers are JSON. A refusal is plain text with its reason.
- Any site may call the API from the browser, since it takes only the key and no cookies.
- Folders on your computer are never shown, only repositories.
Sign in with helios
A site can get a read key without anyone pasting one.
1. Send the person to your helios site:
https://your-site/authorize?redirect_uri=https://example.com/callback&state=RANDOM&name=My+portfolio
They sign in if they need to, see the site's address and what it will read, and choose Allow.
2. Take the code they come back with. They come back to redirect_uri with code and your state, or with error=access_denied if they cancel. Check that state is the one you sent.
3. Trade the code for a key within 5 minutes, from your server or the browser:
curl -X POST https://your-site/api/public/v1/token \
-d '{"code":"tdc_...","redirect_uri":"https://example.com/callback"}'
The answer is {"key": "tdp_...", "token_type": "Bearer", "name": ..., "slack_id": ...}. Use the key with the calls above.
The rules:
- A code works once, for the
redirect_uriit was made for. Trading it a second time also revokes the key it became. redirect_urimust use https, except onlocalhost.- A site without a server should add PKCE: send
code_challenge, the base64url SHA-256 of a random verifier, and sendcode_verifierwith the code. - The key shows under the person's Settings, API, named after your site, where they can revoke it.
- Each site keeps at most 5 keys per person. Signing in again after that revokes the oldest.
- Banned accounts can't sign in.
Set up sign-in
- Open Developer Apps on auth.hackclub.com and create an app with the
openid,profile, andslack_idscopes. - Add
https://your-site/auth/callbackas its redirect URI. - Copy the app's client ID and client secret into the Worker's secrets.
- Collect the Slack user ID of each superadmin for
ADMINS: in Slack, open their profile, choose ⋮, then Copy member ID.
Hosting cost
node worker/scripts/cost-model.ts [prompts per hour] prints the monthly bill from named inputs, with Cloudflare's prices of 2026-11-22.
For 15,488 people logging 109,759 engaged hours a month, against a $500 limit:
| Prompts an hour | After a year | After three years |
|---|---|---|
| 20 | about $10 a month | about $13 a month |
| 60 | about $27 a month | about $35 a month |
What is kept where:
- R2 keeps every record, every report, and the account log's older rows, for good.
- D1 keeps each person's newest few hundred log rows and the day totals. The day totals pass D1's 10 GB limit in about year 6, unless old days are folded into months.
The inputs are assumptions until measured against a real deploy.
Privacy
Chat logs and prompt text never leave your computer.
What helios reads
helios reads timestamps, token counts, line counts, and working folders from your logs.
Prompt text is only scored in memory, to count recognized words. It is never stored or printed, and sync never uploads it.
What it sends to your website
In Amp's cloud, the plugin sends your website each prompt's time, thread, folder, repository, and word counts, without its text. Every other harness's hooks send the same kind of record.
What the website keeps
- Records. The website keeps these records in R2 for good.
- Reports. The website keeps each report your computers send, which holds those counts and times, so reviewers can read it. Deleting your account deletes them.
- Your public profile. It shows your hours, your days, and the projects it names to anyone, unless you make it private.
See for yourself
To see exactly what leaves your computer, do either of these:
- Run
helios sync -dry-run. It prints the records the next sync would send, and sends nothing. - Pipe a hook payload into
helios hook -check <tool>.
Troubleshooting
Start with helios doctor. It checks for the usual causes below and prints what to run for each problem it finds.
“No Claude Code, Codex, or Amp sessions found”
- Run
helios setupto see where helios looked. - If your logs live somewhere else, such as inside WSL on Windows, pass
-claude-diror-codex-dir. - If your last session was more than a week ago, try
-since 30d.
“helios: command not found”
Open a new terminal so the PATH change applies.
On Windows, the PowerShell window you installed from already has it. Restart any other terminal that was open during the install.
“skipped N log files that could not be read”
Run helios -verbose to list them. Usually they are files a tool is still writing, and the rest of the report is unaffected.
“Your clock is N minutes ahead of (or behind) the site's”
The site expects each computer's clock to be close to its own. helios sync warns once the two are 2 minutes apart.
In your system's date and time settings, turn on setting the time automatically. Then sync again.
My hours look too low or too high
Compare ENGAGED with how long you think you worked, and please open an issue with the numbers.
Uninstall
helios uninstall
It asks once, then:
- Removes helios's hooks from Claude Code, Codex, Cursor, and Copilot, and its Amp and OpenCode plugins.
- Removes the line the installer added to your shell profile, or on Windows the folder it added to your Path. Your other settings and lines stay as they were.
- Asks whether to keep the journal folder, which holds this computer's account key and any records not sent yet.
- Deletes the binary. Windows can't delete a running program, so there it tells you to delete
helios.exeonce the window closes.
-yes answers every question. It deletes the journal folder unless you add -keep-data.
What stays behind
- Your account on the site keeps what it has. Remove the computer under Settings, Computers.
- Claude Code's longer history setting stays.
- helios's
.helios-backupcopies of settings files stay.
Remove only the hooks
To remove the hooks and keep helios, run helios setup -remove-hooks.