omni-agents-a2a — Claude Code skill: agent-to-agent routing
Skill for agent-to-agent interaction via JSON-RPC 2.0 protocol. Agents discover each other, pick optimal models by cost and capabilities, check quotas, and monitor system health.
npx skills add cheaper-inference/OmniRoute --skill omni-agents-a2a -a claude-codeWhat omni-agents-a2a does
omni-agents-a2a exposes 6 built-in skills to talk with OmniRoute: smart-routing picks the best provider/model pair for a task, quota-management reports remaining quota, provider-discovery filters providers by features (vision, JSON mode, tools, max context), cost-analysis estimates request cost, health-report returns system status including circuit states and latencies.
All requests go to the /a2a endpoint over JSON-RPC 2.0 with a Bearer token. The agent publishes an Agent Card at /.well-known/agent.json listing available skills and auth schemes. Requires OMNIROUTE_URL and OMNIROUTE_KEY environment variables.
Errors follow JSON-RPC codes: -32600 for invalid request, -32601 for method not found, -32602 for invalid params, 401 for auth failure. Full OpenAPI schema is available at GET /api/openapi/spec or in docs/openapi.yaml.
What it helps with
- pick a provider and model based on task cost and feature needs
- check quota balance before sending a large request
- get a list of providers supporting vision, JSON mode, and tools
- estimate request cost before execution
- monitor system health: latencies, errors, circuit breaker states
Example prompts for the agent
- Recommend the best provider and model for a 4000-token prompt that needs tools
- Show remaining quota for my current account and provider
- Find all providers that support vision and JSON mode
How to install omni-agents-a2a
1Skills CLI (Vercel)
npx skills add cheaper-inference/OmniRoute --skill omni-agents-a2a -a claude-code2Manually: put the files in place
~/.claude/skills/omni-agents-a2a/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/omni-agents-a2a/
1Skills CLI (Vercel)
npx skills add cheaper-inference/OmniRoute --skill omni-agents-a2a -a codex2Manually: put the files in place
.agents/skills/omni-agents-a2a/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add cheaper-inference/OmniRoute --skill omni-agents-a2a -a cursor2Manually: put the files in place
.cursor/skills/omni-agents-a2a/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install cheaper-inference/OmniRoute omni-agents-a2a2Manually: put the files in place
.github/skills/omni-agents-a2a/SKILL.md1Skills CLI (Vercel)
npx skills add cheaper-inference/OmniRoute --skill omni-agents-a2a -a gemini-cli2Platform CLI
gemini skills install https://github.com/cheaper-inference/OmniRoute --path skills/omni-agents-a2aManually: put the files in place
.devin/skills/omni-agents-a2a/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add cheaper-inference/OmniRoute --skill omni-agents-a2a -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set34
The whole set →Similar
Questions about omni-agents-a2a
How do I install omni-agents-a2a in Claude Code?
Run npx skills add cheaper-inference/OmniRoute --skill omni-agents-a2a -a claude-code. The skill will be installed to ~/.claude/skills/omni-agents-a2a/SKILL.md.
What do I need to use omni-agents-a2a?
Set OMNIROUTE_URL (server address) and OMNIROUTE_KEY (Bearer token) environment variables. Get a token via POST /api/auth/login or set REQUIRE_API_KEY=false for local development.
Which skills does omni-agents-a2a provide?
smart-routing selects the optimal model, quota-management shows remaining quota, provider-discovery filters providers, cost-analysis calculates cost, health-report checks system status.
Source text
SKILL.md · MIT
---
name: omni-agents-a2a
description: "Interact with OmniRoute via JSON-RPC 2.0 agent-to-agent protocol. 6 built-in A2A skills: smart-routing, quota-management, provider-discovery, cost-analysis, health-report, list-capabilities."
---
<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->
## Overview
Interact with OmniRoute via JSON-RPC 2.0 agent-to-agent protocol. 6 built-in A2A skills: smart-routing, quota-management, provider-discovery, cost-analysis, health-report, list-capabilities.
## Authentication
All requests require a valid Bearer token or session cookie. Obtain a token via `POST /api/auth/login` or configure `REQUIRE_API_KEY=false` for local development.
## Endpoints
_No endpoints mapped for this area yet._
## Payloads
See the full OpenAPI specification at `GET /api/openapi/spec` or `docs/openapi.yaml` for detailed request/response schemas.
<!-- skill:custom-start -->
<!-- Migrated from skills/omniroute-a2a/SKILL.md (preserved curated content) -->
# OmniRoute — A2A Protocol
Requires `OMNIROUTE_URL` and `OMNIROUTE_KEY`. See [entry-point SKILL](https://raw.githubusercontent.com/diegosouzapw/OmniRoute/main/skills/omni-auth/SKILL.md) for setup.
OmniRoute publishes an Agent Card at `/.well-known/agent.json` and accepts
JSON-RPC 2.0 calls at `/a2a`.
## Discovery
```bash
curl $OMNIROUTE_URL/.well-known/agent.json
```
Returns Agent Card with skills, endpoints, auth scheme.
## Available skills
| Skill | Purpose |
| -------------------- | ----------------------------------------------------------------------------------- |
| `smart-routing` | Given a prompt, recommends best provider/model combo |
| `quota-management` | Reports quota balance for given provider/account |
| `provider-discovery` | Lists providers matching capability filters (vision, JSON mode, tools, max-context) |
| `cost-analysis` | Estimates cost for a given request shape |
| `health-report` | Returns system health (circuit states, latencies, errors) |
## Call example (JSON-RPC 2.0)
```bash
curl -X POST $OMNIROUTE_URL/a2a \
-H "Authorization: Bearer $OMNIROUTE_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tasks/send",
"params": {
"skillId": "smart-routing",
"input": { "prompt_length": 4000, "tools": true, "vision": false }
},
"id": 1
}'
```
## Response shape
```json
{
"jsonrpc": "2.0",
"result": {
"taskId": "...",
"status": "completed",
"output": { "recommended_combo": "...", "reasoning": "..." }
},
"id": 1
}
```
## Errors
- `-32600` → invalid request (bad JSON-RPC envelope)
- `-32601` → method not found (check `method` field)
- `-32602` → invalid params (check `skillId` against Agent Card)
- `401` → missing/invalid `OMNIROUTE_KEY`
## Reference
Full docs: https://github.com/diegosouzapw/OmniRoute/blob/main/docs/frameworks/A2A-SERVER.md
<!-- skill:custom-end -->
© cheaper-inference · MIT · cheaper-inference/OmniRoute