Connect OpenHands to Anoman AI
OpenHands (formerly OpenDevin) routes its LLM calls through LiteLLM, so it accepts any OpenAI-compatible base URL. Point it at Anoman to add prompt-injection detection, PII masking, tool-call policy enforcement, and full observability to every agent step.
Prerequisites
- An Anoman AI account with an active API key (anm-sk-...)
- OpenHands installed (docs.all-hands.dev)
Step 1: Set the LLM environment variables
OpenHands reads the model, base URL, and key from environment variables. Point the base URL at Anoman's OpenAI-compatible endpoint and use your Anoman API key.
export LLM_BASE_URL=https://api.anoman.io/v1
export LLM_API_KEY=anm-sk-your-key-here
export LLM_MODEL=openai/claude-sonnet-4-6Step 2: Or configure it in the UI
In the OpenHands Settings panel, open Advanced options and set the Base URL and API Key fields to the values above. Choose any model available on Anoman.
Step 3: Start a task
Run an OpenHands session. Each planning and tool-execution call now routes through Anoman — guardrails run before the provider call, and every request is metered and traced in your dashboard.
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 OpenHands 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: noneNeed help with your integration?
Join the Founding 50 for early access and direct support from the Anoman team.
Join Founding 50