Haleclipse/cscience provides a local Claude Science runtime with API key support, distribution patches, and multiple platform builds. It includes install, setup, usage, and config instructions, plus a patch set that enables API key authentication and local operation.
Collecting history — the radar snapshots this repo daily. The trend line appears after 3 days of data (1 so far).
What it is
A JavaScript package that runs Claude Science locally using your Anthropic API key, avoiding OAuth login. It distributes a patched build of Claude Science and offers commands to start a server, check status, and stop the daemon. The package provides setup for creating a byok.env file with ANTHROPIC_API_KEY and optional parameters.
How it works
The tool patches the Claude Science build using 13 AST-based patches applied to a minified JS bundle, enabling API-key authentication and local operation without OAuth. It validates the patched output with Acorn. Patches cover OAuth bypass, env-based key usage, custom base URLs, model handling, and token behavior.
Getting started
Install:
bun install -g @cometix/cscience
Initial setup creates a config at ~/.claude-science/byok.env after running cscience once. Edit the file to set ANTHROPIC_API_KEY, then re-run. Usage examples:
cscience # start server + open browser
cscience serve --port 9000 # custom port
cscience status # check daemon status
cscience stop # stop daemon
Config keys supported include ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_BASE_URL, OPERON_MODELS, PORT, NO_AUTO_UPDATE.
Custom models can be specified as OPERON_MODELS=claude-sonnet-4-20250514:Sonnet 4,claude-opus-4-20250918:Opus 4 or as JSON array.
Recent releases
Latest two releases:
- v0.0.2 (2026-07-07): Full Changelog at https://github.com/Haleclipse/cscience/compare/v0.0.1...v0.0.2
- v0.0.1 (2026-07-07): Full Changelog at https://github.com/Haleclipse/cscience/commits/v0.0.1
Traction
Stars: 132 Forks: 11 Open issues: 1
License
MIT
