[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-92495":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":19,"topics":21,"createdAt":10,"pushedAt":10,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":16,"starSnapshotCount":16,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},92495,"cscience","Haleclipse\u002Fcscience","Haleclipse","Claude Science Rebuild","",null,"JavaScript",132,11,72,1,0,25,42.74,false,"master",[],"2026-07-22 04:02:06","# @cometix\u002Fcscience\n\nRun [Claude Science](https:\u002F\u002Fclaude.com\u002Fproduct\u002Fclaude-science) locally with your own Anthropic API key. No OAuth login required.\n\n## Install\n\n```bash\nbun install -g @cometix\u002Fcscience\n```\n\n## Setup\n\nFirst run creates `~\u002F.claude-science\u002Fbyok.env`:\n\n```bash\ncscience\n# → Config created: ~\u002F.claude-science\u002Fbyok.env\n# → Edit it to set your ANTHROPIC_API_KEY, then re-run.\n```\n\nEdit the config:\n\n```bash\nvim ~\u002F.claude-science\u002Fbyok.env\n```\n\n```env\nANTHROPIC_API_KEY=sk-ant-api03-xxxxx\n```\n\n## Usage\n\n```bash\ncscience                        # start server + open browser\ncscience serve --port 9000      # custom port\ncscience status                 # check daemon status\ncscience stop                   # stop daemon\n```\n\n## Config\n\n`~\u002F.claude-science\u002Fbyok.env` supports:\n\n| Key | Description |\n|-----|-------------|\n| `ANTHROPIC_API_KEY` | Your Anthropic API key (required) |\n| `ANTHROPIC_AUTH_TOKEN` | Alternative: OAuth bearer token |\n| `ANTHROPIC_BASE_URL` | Custom API endpoint \u002F proxy |\n| `OPERON_MODELS` | Custom model list (see below) |\n| `PORT` | Server port (default: auto) |\n| `NO_AUTO_UPDATE` | Set to `1` to skip update checks |\n\n### Custom Models\n\n```env\n# Comma-separated id:name pairs\nOPERON_MODELS=claude-sonnet-4-20250514:Sonnet 4,claude-opus-4-20250918:Opus 4\n\n# Or JSON\nOPERON_MODELS=[{\"id\":\"claude-sonnet-4-20250514\",\"name\":\"Sonnet 4\"}]\n```\n\n## How It Works\n\nThis package distributes a patched build of Claude Science that replaces OAuth-only authentication with API key support. The patcher uses Acorn to parse the ~9MB minified JS bundle into a full AST, applies 13 targeted patches, and validates the output parses cleanly.\n\n### Patches\n\n| ID | Name | What it does |\n|----|------|-------------|\n| P1 | `oauth-gate-bypass` | Accept API key when OAuth token is absent |\n| P2 | `credential-resolver-env` | Fall back to `ANTHROPIC_API_KEY` env var |\n| P3 | `https-enforcement-relaxed` | Allow HTTP base URL for local proxies |\n| P4 | `auth-status-bypass` | Return `authenticated: true` without OAuth |\n| P5 | `growthbook-flags-hardcode` | Enable feature flags without GrowthBook |\n| P6 | `models-error-downgrade` | Show default models instead of auth error |\n| P7 | `provider-restriction-remove` | Remove anthropic-only provider check |\n| P8 | `operon-models-env` | Support `OPERON_MODELS` env var |\n| P9 | `model-filter-disable` | Remove `claude-` prefix requirement |\n| P10 | `fable-filter-disable` | Remove fable\u002Fmythos model series block |\n| P11 | `pid-daemon-recognition` | Recognize `.js`\u002F`.ts` in process detection |\n| P12 | `disable-require-token` | Remove `require_token` build guard |\n| P13 | `require-token-default-false` | Default `require_token` to `false` |\n\nAll patches are AST-based (no regex\u002Fstring matching), idempotent, and validated against Acorn after application.\n\n## Package Structure\n\nOne package name, platform runtimes published as version suffixes with dist-tags:\n\n```\n@cometix\u002Fcscience@0.1.0                 latest (meta)\n@cometix\u002Fcscience@0.1.0-mac-arm64       macOS ARM\n@cometix\u002Fcscience@0.1.0-mac-x64         macOS Intel\n@cometix\u002Fcscience@0.1.0-linux-x64       Linux x64\n```\n\n`bun install -g @cometix\u002Fcscience` automatically pulls the correct platform runtime via `optionalDependencies` with `npm:` aliases.\n\n## Requirements\n\n- [Bun](https:\u002F\u002Fbun.sh) >= 1.1.0\n- An [Anthropic API key](https:\u002F\u002Fconsole.anthropic.com\u002F)\n\n## Building from Source\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FHaleclipse\u002Fcscience.git\ncd cscience\nnpm install\nnpm run build                   # current platform\nnpm run build:mac-arm64         # specific platform\nnpm run build:all               # all platforms\n```\n\nOutput in `dist\u002Fpkg-\u003Cplatform>\u002F`.\n\n## License\n\nMIT\n","这是一个让 Claude Science 前端应用支持本地化部署与 API Key 认证的工具。它通过 AST 级代码补丁（共 13 处）绕过原版强制 OAuth 登录的限制，允许用户使用 Anthropic API Key 直接启动本地服务，并支持自定义模型列表、代理地址及端口配置。项目基于 JavaScript 实现，采用 Acorn 解析器进行精准、可验证的代码修改，不依赖正则替换，确保补丁安全可靠。适用于需要离线\u002F私有化运行 Claude Science、规避 OAuth 流程、或集成至内部开发\u002F科研环境的场景。",2,"2026-07-09 02:30:09","CREATED_QUERY"]