Skip to main content
OpenHands is an autonomous AI coding agent. You can connect it to Routeway by adding a custom LLM endpoint that points to Routeway’s OpenAI-compatible API.
Requires a valid Routeway API key. Get yours from the dashboard.

Setup

1

Open OpenHands LLM settings

In OpenHands, add a new LLM Endpoint and toggle Advanced to reveal all fields.
2

Configure the endpoint

Fill in the following:
FieldValue
Custom Modelopenai/MODEL_ID (e.g. openai/gpt-4.1)
Base URLhttps://api.routeway.ai/v1
API KeyYour Routeway API key
AgentCodeActAgent (recommended)
The Base URL must not end with a trailing /. Use https://api.routeway.ai/v1 exactly.
3

Model naming

Prefix the model with openai/ and use the exact model ID from routeway.ai/models:
  • openai/gpt-4.1
  • openai/claude-sonnet-4.5
  • openai/gemini-2.5-flash
4

Start using OpenHands

Save the configuration and start a new session. OpenHands will route requests through Routeway.

Reference

SettingValue
Base URLhttps://api.routeway.ai/v1 (no trailing slash)
Model prefixopenai/
Recommended agentCodeActAgent

Example Prompts

  • “Set up a basic Express.js server with health check endpoint.”
  • “Find and fix the bug causing test failures in the auth module.”
  • “Refactor this class to use dependency injection.”