1.6 KiB
1.6 KiB
Workspace
Overview
Standalone TypeScript API server with Replit run configuration.
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 dev— run API server locally on port3001pnpm 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
.replitrunbuilds withnode build.mjsand runsdist/index.mjs.replitonBootusespnpm install --ignore-workspace- publishing should use a
kind = "web"artifact with production build/run commands pointing at this proxy
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