anoman
Agent Integration Guides
VS Code

Connect GitHub Copilot (VS Code) to Anoman AI

GitHub Copilot in VS Code can send chat and agent requests to Anoman through its Custom Endpoint provider — guardrails on every prompt.

Prerequisites

  • An Anoman API key — create one in the dashboard (format anm-sk-…).
  • VS Code with GitHub Copilot installed and up to date.
  • A model ID from the Anoman catalog, e.g. gpt-4o, gpt-4o-mini, or claude-sonnet-4-6.

Enable streaming for long agent runs

Set stream: true on requests. Autonomous, multi-step, and long-thinking tasks can exceed the 100-second edge timeout and fail with a 524 error; streaming returns tokens as they are generated and keeps the connection alive, so the request completes. Most tools stream by default — confirm it is on for agentic use.

More detail in the streaming guide.

Add a Custom Endpoint

In Copilot's model picker, choose Manage Models, add a Custom Endpoint of type OpenAI-compatible, and enter Anoman's base URL and your key.

Provider:  OpenAI-compatible (Custom Endpoint)
Base URL:  https://api.anoman.io/v1
API Key:   anm-sk-your-key-here

Prefer the Anthropic API?

Copilot's Custom Endpoint also supports the Anthropic Messages format — point it at Anoman's Anthropic endpoint instead.

Provider:  Anthropic-compatible (Custom Endpoint)
Base URL:  https://api.anoman.io/anthropic
API Key:   anm-sk-your-key-here

Pick a model — note on completions

Select any Anoman model. The custom endpoint powers Copilot Chat and agent mode; inline tab autocomplete stays on Copilot's own model.

# Any Anoman model works, e.g.:
gpt-4o
gpt-4o-mini
claude-sonnet-4-6
claude-haiku-4-5

Verify the guardrails are active

Every Anoman response carries guardrail result headers. Inspect them in your dashboard traces to confirm the pipeline is running on GitHub Copilot (VS Code) requests — prompt-injection detection, PII masking, and content moderation all apply automatically.

X-Anoman-Guardrail-Injection: pass score=0.03
X-Anoman-Guardrail-Pii: pass
X-Anoman-Guardrail-Content: pass
X-Anoman-Cache: none

Need help with your integration?

Join the Founding 50 for early access and direct support from the Anoman team.

Join Founding 50