LeashgateDocs
Get started

Quickstart

Connect your first agent in about two minutes, without moving any key.

1. Create a workspace

Open the console and enter your work email. Your Leashgate key is created immediately and shown on the Connect page. It looks like lg_XXXXXXXX….

2. Change one address

Replace your provider's base URL with the Leashgate address for that provider. Your provider key, or your Google service-account file, stays exactly where it is. For the official OpenAI and Anthropic SDKs, this is one environment variable and no code change:

Environment
OPENAI_BASE_URL=https://gw.leashgate.com/k/lg_your_key/a/support-bot/openai/v1
ANTHROPIC_BASE_URL=https://gw.leashgate.com/k/lg_your_key/a/support-bot/anthropic

Set it where your agent runs (Render, Vercel, Railway, AWS, Docker, .env) and restart the agent. Other providers, including Gemini and Vertex AI, are on the Providers page.

3. Run your agent once

It appears in Agents within seconds with its model, tokens and estimated cost. Large refunds wait for approval, deletions in production are blocked and personal data is masked, from the first call.

/a/support-bot/ in the address names the agent, so each one gets its own budget, history and kill switch. You can also send the header x-leash-agent. Without a name, calls are grouped under the provider's name.

No agent yet?

Click Run a test in the console: four sample actions go through your rules and appear in Activity.