Choose your providers.
Route to OpenAI, Anthropic, Google, or a configured OpenAI-compatible endpoint, including local model servers.
Freeport gives your application a common interface to model providers, with routing, spending controls, and an audit trail in the environment you run.
Your application talks to Freeport. Freeport applies your configured controls and routes the request to a model provider.
Cloud or local: the request goes to the provider you choose.
Route to OpenAI, Anthropic, Google, or a configured OpenAI-compatible endpoint, including local model servers.
Configure fallback chains and circuit breakers. Distribute requests across multiple keys for a provider.
Track usage by project, set daily or monthly budgets, and use a kill switch when traffic needs to stop.
Inspect request logs, usage, and cost in the admin UI. Export Prometheus metrics into your own monitoring.
Configure PII detection, content filtering, and rate limits. Provider keys are encrypted at rest.
Accept OpenAI and Anthropic message formats, with translation for streaming, tools, vision, and JSON mode.
You will need a supported Node.js version and either provider credentials or a local model endpoint. Start with the gateway, then connect your application.
Full setup & configurationnpx @reallyartificial/freeportFreeport starts at http://localhost:4000.
Open http://localhost:4000/ui/ in your browser. Add your provider credentials or configure a local endpoint.
Set your OpenAI SDK base URL to the gateway’s /v1 endpoint. For Anthropic clients, use the gateway’s /v1/messages endpoint. Send a request and inspect its log in the dashboard.
The gateway and its SQLite database run in your environment. Requests are forwarded to the model providers you configure. Using a cloud provider means sending prompts to that provider; using a local endpoint keeps model traffic within that setup.
No. Freeport sits between your application and model providers. You supply provider credentials or an endpoint for a model server you operate.
Freeport accepts OpenAI-style requests at /v1 and Anthropic Messages requests at /v1/messages. Start by changing the client base URL, then test the request shapes and provider features your application uses. Compatibility varies with upstream features.
Set NODE_ENV=production and configure FREEPORT_API_KEY and FREEPORT_ADMIN_API_KEY. Review provider credentials, network access, budgets, guardrails, and log retention for your environment. The repository documents the configuration options.
Freeport is MIT-licensed software you can run and modify. You pay for your own infrastructure and any upstream model usage.