Use this if
Use `/ai-gateway` as the setup home: connect one BYOK provider key, allowlist it in policy, then create a client for your IDE or automation.
Use `/ai-gateway` as the setup home: connect one BYOK provider key, allowlist it in policy, then create a client for your IDE or automation. Audience: Tenant admins, security leads, and workspace owners. Typical setup time: 15-20 minutes.
Use `/ai-gateway` as the setup home: connect one BYOK provider key, allowlist it in policy, then create a client for your IDE or automation.
Step 1
Start in `/ai-gateway`, then open the OpenAI provider connection to add the first tenant-owned key your team already trusts.
What success looks like
Run provider preflight before returning to AI Gateway.
Step 2
The AI Gateway restricts active routing and access until policy explicitly allows the connected provider.
What success looks like
Stay in advisory until the pilot team sees the warnings you expect, then move to enforce.
Step 3
Give each IDE, MCP client, or service principal its own AI Gateway client so access is easy to rotate or disable.
What success looks like
Limit each client to the provider connections and MCP tools that team actually needs.
Step 4
Run one low-risk test first so you can confirm auth, policy behavior, and activity logging.
What success looks like
Review policy warnings and usage logs before inviting more users.
Demonstration only
This configuration is designed for ease of use. To deploy scanner clients at scale, please plan your deployment architecture accordingly or contact us for enterprise best practices.
curl -X POST https://api.blackshield.chaplau.com/api/v1/ai-gateway/oauth/token \
-H "Content-Type: application/json" \
-d '{
"grant_type": "client_credentials",
"client_id": "your-client-id",
"client_secret": "your-client-secret"
}'curl -X POST https://api.blackshield.chaplau.com/api/v1/ai-gateway/openai/v1/chat/completions \
-H "Authorization: Bearer <your_short_lived_token>" \
-H "Content-Type: application/json" \
-d '{
"provider": "openai",
"model": "gpt-4o-mini",
"messages": [
{
"role": "user",
"content": "List the security requirements for the tenant onboarding flow."
}
]
}'{
"mcpServers": {
"blackshield-gateway": {
"command": "blackshield-mcp",
"args": [
"--client-id", "<your-client-id>",
"--client-secret", "<your-client-secret>",
"--url", "https://api.blackshield.chaplau.com/api/v1/mcp"
]
}
}
}