1.6 KiB
1.6 KiB
Workspace
Overview
Standalone TypeScript API server packaged as a Replit kind = "web" artifact.
Stack
- Node.js version: 24
- Package manager: pnpm
- TypeScript version: 5.9
- API framework: Express 5
- Build: esbuild
Provider Endpoints
Use Replit AI Integrations endpoints. The app reads these environment variables automatically:
AI_INTEGRATIONS_OPENAI_BASE_URLAI_INTEGRATIONS_OPENAI_API_KEYAI_INTEGRATIONS_ANTHROPIC_BASE_URLAI_INTEGRATIONS_ANTHROPIC_API_KEY
CLI flags are still available for manual overrides:
--openai-base-url--openai-api-key--anthropic-base-url--anthropic-api-key
Never use public official provider endpoints.
Key Commands
pnpm install --ignore-workspace— install dependencies without joining a parent workspacepnpm prod— build and run API server locally on port3000pnpm run typecheck— typecheck the serverpnpm run build— typecheck and builddist/index.mjspnpm run build:fast— builddist/index.mjswithout typecheckingpnpm start— run the built server
Replit Configuration
.replitrunusespnpm prod.replitonBootusespnpm install --ignore-workspace.replit-artifact/artifact.tomlmarks this repo as a publishablekind = "web"artifact
Server Overrides
--hostorHOST--portorPORT--proxy-api-keyorPROXY_API_KEY
Routes
/and/dashboard— static model dashboard/api/healthz— health check/v1/models— OpenAI-compatible model list/v1/chat/completions— OpenAI-compatible chat proxy