@phanthy/phanthy-code
v0.3.26
Published
phanthy code — phanthy group CLI for software engineering tasks.
Readme
phanthy code
An AI-powered software engineering CLI by phanthy group — edit files, run commands, search codebases, and coordinate agent workflows from your terminal.
🌐 Website: code.phanthy.com — sign up, manage your plan, and get your account before you start.
Quick Start
Sign up at code.phanthy.com to create your account and activate a plan.
Install the CLI:
npm install -g @phanthy/phanthy-codeRun it — on first launch the CLI opens a browser to sign in through code.phanthy.com:
phanthy-code
That's it. Once you're signed in, the CLI is ready to use.
What is phanthy code?
phanthy code is a CLI for performing software engineering tasks such as editing files, running commands, searching codebases, and coordinating workflows. It works hand-in-hand with the code.phanthy.com platform, where you register, sign in, and manage your subscription.
- Language: TypeScript
- Runtime: Bun
- Terminal UI: React + Ink
- Scale: ~1,900 files, 512,000+ lines of code
Installation
Install Bun before using the CLI or working on the repository:
curl -fsSL https://bun.sh/install | bashInstall the published CLI with npm:
npm install -g @phanthy/phanthy-codeFor local development, install repository dependencies with Bun:
bun installAuthentication
The recommended path is to sign up at code.phanthy.com and let the CLI handle login for you. On first run, the CLI signs in through https://code.phanthy.com and sends model API requests using the stored OAuth access token — no manual configuration required.
Developer token (optional)
If you have a developer API key, you can skip web login:
export PHANTHY_API_KEY="your-api-key"When PHANTHY_API_KEY is set, the CLI skips web login and sends it as a bearer token to https://code.phanthy.com by default.
Endpoint overrides (advanced)
export PHANTHY_CODE_BASE_URL="http://localhost:3001"
export PHANTHY_BASE_URL="https://your-phanthy-api.example.com"PHANTHY_CODE_BASE_URL points OAuth, release notes, marketplace, telemetry, and
normal logged-in Code gateway traffic at a local or enterprise Code deployment.
For packaged enterprise builds, inject it into the process environment from the
launcher or host app. PHANTHY_BASE_URL remains the strongest override and
forces first-party model API traffic to a custom endpoint.
Links
- 🌐 Website / Sign up: code.phanthy.com
- 📦 npm: @phanthy/phanthy-code
Ownership
- Copyright and ownership belong to phanthy group.
- phanthy code is maintained as an independent phanthy group project that uses phanthy API configuration.
