Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Instruction file imported from SafetyMP/Healthcare-Data-Exchange (.github/instructions/rego.instructions.md). Copyright stays with the author.
Rego coding standards (September 2026)
Fail closed. Do not add a default allow to unblock an agent or a test.
Keep package names and data.* paths consistent with existing tests.
Do not encode identity or jurisdiction in query parameters.
Pair policy edits with tests unless this repository is a documented mirror that forbids local *_test.rego.
This repository
Canonical OPA tree is policy/ here. After edits, run ./scripts/sync-policy-repo.sh before claiming OPAL policy is current.
Do not invent a second policy-sync mechanism.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slot
curl -s -X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.