Router9
Documentation
Integrations

OpenWork

Use Router9 as a custom provider in OpenWork

OpenWork logo

OpenWork is an open-source agent framework for orchestrating multi-step work across tools. It speaks the OpenAI API format and supports custom providers, so it runs on Router9 with no code changes.

Setup

Add Router9 as a provider in your OpenWork configuration file (openwork.json):

{
  "providers": {
    "router9": {
      "baseUrl": "https://api.router9.com/v1",
      "apiKey": "${ROUTER9_API_KEY}",
      "protocol": "openai"
    }
  },
  "defaultModel": "router9/gpt-4o"
}

Environment Variables

export ROUTER9_API_KEY=sk-r9k-your-key-here

Choosing Models

Model references follow the provider/model format. Swap router9/gpt-4o for any model Router9 supports, such as router9/claude-sonnet-4-20250514.

Using the Anthropic Endpoint

For Anthropic-native models, add a second provider pointing at Router9's Anthropic endpoint:

{
  "providers": {
    "router9_anthropic": {
      "baseUrl": "https://api.router9.com/anthropic",
      "apiKey": "${ROUTER9_API_KEY}",
      "protocol": "anthropic"
    }
  }
}

Tips

  • OpenWork's multi-step orchestration can fan out many calls — Router9's flat monthly pricing keeps the cost flat.
  • Keep your sk-r9k- key in the environment rather than committing it to openwork.json.

On this page