gitwtfhub

wtf is cscience?

haleclipse/cscience — explained in plain English

Analysis updated 2026-05-18

148JavaScriptAudience · developerComplexity · 3/5License

TL;DR

A packaged, patched build of Claude Science that lets developers run it locally with their own Anthropic API key instead of OAuth login.

Mindmap

mindmap
  root((cscience))
    What it does
      Runs Claude Science locally
      Uses own API key
      Skips OAuth login
    How it works
      Acorn based AST patches
      13 targeted patches
      Validated after patching
    Tech stack
      JavaScript
      Bun runtime
      npm package
    Platforms
      macOS arm64
      macOS x64
      Linux x64
    Use cases
      Local dev with API key
      Custom model list
      Custom proxy base URL

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Run Claude Science on a local machine using a personal Anthropic API key instead of OAuth.

REASON 2

Point the tool at a custom API base URL for a local proxy setup.

REASON 3

Define a custom list of available models through an environment variable.

REASON 4

Build platform-specific packages from source for macOS or Linux.

What's in the stack?

JavaScriptBunAcornNode.js

How it stacks up

haleclipse/cscienceyeet-src/sigwirefoundzigu/smsbazaar
Stars148147150
LanguageJavaScriptJavaScriptJavaScript
Setup difficultymoderate
Complexity3/53/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

Free to use, modify, and distribute for any purpose, including commercial use, as long as you keep the copyright notice.

Wtf does this do

cscience, published as the npm package @cometix/cscience, lets a developer run Claude Science, an Anthropic product, on their own computer using their own Anthropic API key instead of logging in through the usual OAuth flow. It is installed globally with the Bun package manager and requires Bun version 1.1.0 or higher along with an Anthropic API key. On first run, the tool creates a configuration file at a hidden folder in the user's home directory. The user edits that file to add their API key, then runs the tool again to start a local server and open Claude Science in a browser. Commands are available to start the server on a custom port, check whether the background process is running, and stop it. The configuration file also supports a custom API base URL, an alternative OAuth bearer token, and a way to define a custom list of available models. According to the README, the package works by distributing a modified build of Claude Science. It uses a JavaScript parsing library called Acorn to read the minified application code, then applies 13 targeted changes so the app accepts an API key instead of requiring OAuth login, falls back to environment variables for credentials, allows local HTTP proxy addresses, and adjusts a few other authentication and model related checks. The README states these changes are based on parsing the code's structure rather than plain text matching, and that each change is checked to make sure the resulting code still parses correctly. The package is distributed as platform-specific builds for macOS on Apple Silicon and Intel chips, and for Linux on x64, with the installer automatically pulling the right one. Developers can also build it from source by cloning the repository, installing dependencies with npm, and running a build script for their platform or all platforms at once. The project is released under the MIT license and is aimed at developers who already have an Anthropic API key and want to run Claude Science locally without the standard login process.

Yoink these prompts

Prompt 1
Help me install cscience with Bun and set up my Anthropic API key.
Prompt 2
Explain what the 13 patches listed in this README actually change in Claude Science.
Prompt 3
Show me how to run cscience on a custom port and check its daemon status.
Prompt 4
Help me build cscience from source for macOS arm64.

Frequently asked questions

wtf is cscience?

A packaged, patched build of Claude Science that lets developers run it locally with their own Anthropic API key instead of OAuth login.

What language is cscience written in?

Mainly JavaScript. The stack also includes JavaScript, Bun, Acorn.

What license does cscience use?

Free to use, modify, and distribute for any purpose, including commercial use, as long as you keep the copyright notice.

Who is cscience for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.