Connect Goose (Block) to Anoman AI
Block's Goose routes through Anoman with its OpenAI provider. One gotcha: set the host WITHOUT /v1 — Goose appends the path itself.
Prerequisites
- An Anoman API key — create one in the dashboard (format
anm-sk-…). - Goose installed and up to date.
- A model ID from the Anoman catalog, e.g.
gpt-4o,gpt-4o-mini, orclaude-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.
Configure the OpenAI provider
Set OPENAI_HOST to the Anoman host with NO /v1 suffix (Goose adds /v1/chat/completions), plus your key and the openai provider.
Select a model and start a session
Run goose configure to choose the OpenAI provider and a model from the Anoman catalog, then start a session.
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 Goose requests — prompt-injection detection, PII masking, and content moderation all apply automatically.
Need help with your integration?
Join the Founding 50 for early access and direct support from the Anoman team.