Quickstart
Start on Free with your coding agent. Check the connection before choosing whether to integrate your application.
Copy the setup prompt
. Paste it into your coding agent in your project. It keeps your current tools and starts with Free.Complete any private sign-in step
. Your agent will guide you to create or select your Ingate account. Enter credentials privately and approve only the access you intend.Check the result
. Your agent reports whether Free and your connection are verified, or what still needs attention. You can connect your application code afterwards.
No model provider key is needed to connect supported coding-agent subscription usage. Your existing subscription sign-in stays in place.
Set up with your coding agent
Paste this into your coding agent in your project to start on Free, then check the connection. Your agent explains any private sign-in step. Keep secrets out of chat.
Review or select the complete prompt below.
Optional: connect application code
Use this separate prompt after setup if you want your app to send model requests through Ingate. Your agent explains any provider credentials or request costs before a live test.
Connect application code (optional)
Use this after setup if you want your app to send requests through Ingate. Your agent explains any private sign-in step. Keep secrets out of chat.
Review or select the complete prompt below.
For agents and engineers: Agent technical reference. You can also expand the manual reference below.
Manual setup and technical reference
Connect one workload and prove it was recorded
Two ways to run Ingate
https://api.ingateai.com. Or self-host the gateway yourself with Docker or the Go binary; it serves on http://localhost:7100. See Deployment for production setup. The steps below cover Ingate Cloud first, then self-hosting.1. Create Your Account
Head to app.ingateai.com and create an account. This sets up your organization and generates your first Ingate API key. It looks like sk-ingate-....
Save your API key
2. Add a Provider
In the dashboard, navigate to Dashboard → Providers and click Add Provider. Choose the LLM provider you want to route to (OpenAI, Anthropic, etc.) and select an auth mode:
API Key Mode
Ingate securely stores your provider API key (e.g. your OpenAI sk-... key) and injects it into every proxied request. Your clients never see the provider key. They only use their Ingate key.
This is the default for most use cases: backend services, internal tools, and any app where you manage the provider subscription.
Passthrough Mode
Ingate forwards the client's upstream authorization when the selected provider uses auth_passthrough: true. Supply that provider's credentials separately from X-Ingate-Key, which authenticates the gateway. Compatibility with a particular subscription client must be verified separately.
Auto-detection
/v1/chat/completions routes to OpenAI, /v1/messages routes to Anthropic, and so on. You don't need to specify the provider explicitly.3. Send Your First Request
Send a request to Ingate the same way you would to your provider. Just swap the base URL and add your Ingate key. Set INGATE_KEY privately in your shell to the key from this gateway. These requests assume provider API-key injection; the provider is auto-detected from the path. For application attribution, create or select an application in the dashboard and use its application-bound key. Set INGATE_SESSION_ID to a new unique marker for this one proof request; retain it while checking storage. Use the API origin, even when the dashboard uses a separate host:
curl --fail-with-body https://api.ingateai.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-Ingate-Key: $INGATE_KEY" \
-H "X-Ingate-Session-Id: $INGATE_SESSION_ID" \
-d '{
"model": "gpt-4o-mini",
"messages": [{"role": "user", "content": "Say hello"}]
}'That's it. No X-Ingate-Provider header needed. Ingate sees /v1/chat/completions and routes to OpenAI automatically.
For Anthropic, use the Anthropic path and body format:
curl --fail-with-body https://api.ingateai.com/v1/messages \
-H "Content-Type: application/json" \
-H "X-Ingate-Key: $INGATE_KEY" \
-H "X-Ingate-Session-Id: $INGATE_SESSION_ID" \
-d '{
"model": "claude-sonnet-4-20250514",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Say hello"}]
}'Response received; verify stored evidence next
4. SDK Integration
These backend examples send the gateway key in X-Ingate-Key. The SDK placeholder unused is replaced by the provider credential configured in Ingate. It is not a gateway key.
Python
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.ingateai.com/v1",
api_key="unused",
default_headers={
"X-Ingate-Key": os.environ["INGATE_KEY"],
"X-Ingate-Session-Id": os.environ["INGATE_SESSION_ID"],
},
)
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Hello from Ingate!"}],
)
print(response.choices[0].message.content)TypeScript
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.ingateai.com/v1",
apiKey: "unused",
defaultHeaders: {
"X-Ingate-Key": process.env.INGATE_KEY!,
"X-Ingate-Session-Id": process.env.INGATE_SESSION_ID!,
},
});
const response = await client.chat.completions.create({
model: "gpt-4o-mini",
messages: [{ role: "user", content: "Hello from Ingate!" }],
});
console.log(response.choices[0].message.content);Base URLs and upstream authorization
/chat/completions to the configured base, so include/v1. Anthropic uses the gateway origin and appends /v1/messages; retain X-Ingate-Key with either SDK. For OpenAI passthrough, use your upstream OPENAI_API_KEY as the SDK credential while keeping the gateway header. See the Python and TypeScript guides for helpers.5. Check Your Dashboard
Open app.ingateai.com and you'll see your recorded requests. Match the fresh marker, organization, application, provider, successful status, source and capture time. Token and cost fields may be unknown; body visibility depends on capture policy. Inspect the trace rather than assuming a successful response proves storage.
If logging is pending, keep the same marker and repeat only Verify requestor the dashboard read. Do not rerun the inference command to retry a storage check. A missing or invalid Ingate key is rejected with 401 before provider dispatch. A provider can also return 401 after dispatch; inspect the refusal source before treating it as a gateway-key failure. An upstream 502 means the model call failed; arrival alone is not successful connection proof. When content was not captured, the marker proves correlation; it does not independently prove the requested model. Verification displays a returned canonical model when available.
Self-Hosting
Self-hosting from source requires access to the repository and the approved revision shown below. If the repository is private, obtain access before cloning; anonymous cloning will not work. The hosted setup above does not require source access. You need Git, Go 1.26.1 or a compatible newer toolchain, and your own PostgreSQL database (the repository's development Compose file uses PostgreSQL 16). Redis is optional for this recipe. Commands use a POSIX shell; Windows users should adapt paths and environment syntax. This is a local setup, not production certification.
Obtain and configure the source
git clone https://github.com/Ingate-AI/ingate.git
cd ingate
git checkout 5cbcbd65569ba8360747180af81dad55ce547126
go versionCreate a private ingate.local.yaml in this checkout with the following content. Keep it out of version control. Set INGATE_DATABASE_POSTGRESQL_URLto your own database connection string and INGATE_AUTH_TOKEN_SECRETto a randomly generated private secret. Store and reuse that secret across restarts so sessions remain valid. Set INGATE_PROVIDERS_OPENAI_API_KEY to your upstream provider key; it is separate from the local gateway key created below.
server:
host: 127.0.0.1
port: 7100
admin_auth: true
auth:
enabled: false
token_secret: ""
database:
postgresql_url: ""
redis_url: ""
providers:
openai:
base_url: https://api.openai.com
api_key: ""
enabled: trueEnvironment values override these declared fields. With PostgreSQL configured, the server automatically enables database-backed organization-key authentication. Here auth.enabled: false disables only legacy config-file keys;server.admin_auth: true enables authenticated management context. Startup applies database migrations, so use a database you own for this instance.
Build and run
: "${INGATE_DATABASE_POSTGRESQL_URL:?Set your owned database URL}"
: "${INGATE_AUTH_TOKEN_SECRET:?Set your persistent private secret}"
: "${INGATE_PROVIDERS_OPENAI_API_KEY:?Set your upstream provider key}"
go build -o bin/ingate ./cmd/ingate/
./bin/ingate serve --config ./ingate.local.yamlIn another terminal, check readiness:
curl --fail-with-body http://localhost:7100/healthzCreate a local account and key
Create a private signup.json with your email, a unique organization slug, and a password of at least eight characters. Replace the illustrative values before use:
{
"email": "you@example.com",
"password": "REPLACE_WITH_YOUR_PRIVATE_PASSWORD",
"display_name": "Local developer",
"org_name": "Local team",
"org_slug": "your-unique-local-team"
}curl --fail-with-body http://localhost:7100/api/v1/signup \
-H "Content-Type: application/json" \
--data-binary @signup.jsonA successful signup returns HTTP 201 with org, user,api_key and token. Save the one-time api_keyprivately as INGATE_KEY in your client shell, then remove the signup file. The token is a management session token, not the proxy key. Cloud-issued keys do not authenticate this separate database. Open http://localhost:7100/ui/ and log in with this local email and password. Confirm your organization and provider settings.
Send an attributed request
In the local dashboard create or select an application and its key. Replace INGATE_KEY with that application-bound key, and set INGATE_SESSION_ID to a fresh unique marker in the client shell. The signup key identifies the organization but does not attribute a workload to an application.
curl --fail-with-body http://localhost:7100/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-Ingate-Key: $INGATE_KEY" \
-H "X-Ingate-Session-Id: $INGATE_SESSION_ID" \
-d '{"model":"gpt-4o-mini","messages":[{"role":"user","content":"Say hello"}]}'This uses your configured upstream provider and may incur its normal charges. Check the local dashboard for the request under the organization that issued the key. For an offline smoke test, an operator can configure providers.openai.base_urlto an owned OpenAI-compatible mock and use fixture credentials. A mock response does not establish real-provider or production behavior.
Docker alternative: configure the container explicitly
The repository's Dockerfile builds the binary and copies defaults/default.yamlto /etc/ingate/ingate.yaml. Its Compose file does not mount your local YAML. To use a custom file, add a read-only bind mount to that container path (readable by UID 1000). Keep the declared fields, including auth.token_secret, in that mounted file so environment overrides can be decoded; do not rely on the baked provider-only defaults to declare every field. Use server.host: 0.0.0.0 inside the container and bind the published port to loopback for local use. Compose database addresses use postgres andredis, not container-local localhost. Its database environment values override YAML. Pass your persistent token secret and provider credential explicitly. The shipped development Compose publishes database ports and uses development credentials; adapt it before deployment. This Docker alternative has been source-inspected, not runtime-tested here. Editing the native file alone does not configure a container.
Onboard from an Agent
Start with private dashboard sign-in and copy the Free setup prompt above into your MCP-capable agent. Discover the installed gateway's supported tools and verify the selected identity and plan. Keep management access separate from the application workload key. If a protected step is unavailable, finish it in the dashboard and retain the application and key already created. Provider configuration is an optional later step; verify its result and stored activity separately. MCP management does not configure all agent inference calls. For selected existing native usage, see content-free native accounting; it does not proxy subscription inference or enforce policy on those imported events. See MCP Server for connection snippets per agent and the full tool catalog.
Next Steps
Providers
Configure OpenAI, Anthropic, Azure, Ollama, and custom endpoints.
Prompt Management
Create versioned, renderable prompt templates with variable injection.
Evaluations
Run automated quality checks on every LLM response.
Playground
Test prompts and models interactively from the dashboard.
Datasets
Build test datasets from production traffic for evals and fine-tuning.
Sessions
Group related requests into sessions for multi-turn conversation tracking.