orcarouter/auto virtual model selects an upstream provider per request; you can also target specific models using a <provider>/<model> identifier. Because OrcaRouter mirrors the OpenAI API schema, you instrument it with the openinference-instrumentation-openai package by pointing the client’s base_url at OrcaRouter’s endpoint.
Prerequisites
- Python 3.9+
- An Arize AX account (sign up)
- An
ORCAROUTER_API_KEYfrom the OrcaRouter dashboard
Launch Arize
- Sign in to your Arize AX account.
- From Space Settings, copy your Space ID and API Key. You will set them as
ARIZE_SPACE_IDandARIZE_API_KEYbelow.
Install
Configure credentials
Setup tracing
Run OrcaRouter
orcarouter/auto selects an upstream provider per request. The span recorded in Arize AX will show the resolved upstream model name (e.g. deepseek-v4-flash-202505) rather than orcarouter/auto.To test without a funded account, replace orcarouter/auto with a free model such as deepseek/deepseek-v4-flash-free.Expected output
Verify in Arize
- Open your Arize AX space and select project
orcarouter-tracing-example. - You should see a new trace within ~30 seconds containing a
ChatCompletionLLM span with the prompt, response, and token usage attached. The model name on the span will be the upstream model OrcaRouter selected (e.g.deepseek-v4-flash), not the virtualorcarouter/autoidentifier. - If no traces appear, see Troubleshooting.
Check from the skill, CLI, or SDK
Confirm spans are actually reaching your Arize AX project. Use whichever fits your workflow — the skill and CLI work for any framework; the SDK check is shown for each language.- Arize skill (agent)
- AX CLI
- SDK
Install the Arize Skills plugin and let your coding agent check for you:Then prompt your agent:
Use the arize-trace skill to export and analyze recent traces from my project. Confirm spans are arriving, and summarize any errors or latency issues.
Troubleshooting
- No traces in Arize. Confirm
ARIZE_SPACE_IDandARIZE_API_KEYare set in the same shell that runsexample.py. Enable OpenTelemetry debug logs withexport OTEL_LOG_LEVEL=debugand re-run. - OrcaRouter spans missing but other spans present.
OpenAIInstrumentor().instrument(...)must run before anyimport openai. Make sureinstrumentation.pyis the first import in your entry point. 401from OrcaRouter. Use your OrcaRouter API key (from the OrcaRouter dashboard), not an OpenAI or other provider key.403 insufficient_user_quota.orcarouter/autoroutes to paid upstream models and requires a funded OrcaRouter wallet. Add credit in the OrcaRouter dashboard, or use a free model such asdeepseek/deepseek-v4-flash-freeto test without balance.- Model not found. OrcaRouter’s primary virtual model is
orcarouter/auto. You can also pass specific provider models in<provider>/<model>format (e.g.deepseek/deepseek-v4-flash-free,openai/gpt-4.1-mini). See the OrcaRouter documentation for available identifiers.