OffRail
Guides

Autohand Code Integration

Use GPT-5, Claude, Gemini, or any model with Autohand Code's autonomous coding agent. Simple config, full cost tracking.

Autohand Code is an autonomous AI coding agent that works in your terminal, IDE, and Slack. With OffRail, you can route all Autohand Code requests through a single gateway—use any of 200+ models from 40+ providers, with full cost tracking and smart routing.

Setup

Sign Up for OffRail

Sign up free — no credit card required. Copy your API key from the dashboard.

Set Environment Variables

Configure Autohand Code to use OffRail:

export OPENAI_BASE_URL=https://api.offrail.ai/v1
export OPENAI_API_KEY=orl_your_api_key_here

Run Autohand Code

autohand

All requests will now be routed through OffRail.

Why Use OffRail with Autohand Code

  • 200+ models — GPT-5, Claude Opus, Gemini, Llama, and more from 40+ providers
  • Smart routing — Automatically selects the best provider based on uptime, throughput, price, and latency
  • Cost tracking — Monitor exactly how much each autonomous agent costs
  • Single bill — No need to manage multiple API provider accounts
  • Response caching — Repeated requests hit cache automatically
  • Automatic failover — If one provider is down, requests route to another

Configuration File

You can also configure OffRail in Autohand Code's config file:

{
	"provider": {
		"offrail": {
			"baseUrl": "https://api.offrail.ai/v1",
			"apiKey": "orl_your_api_key_here"
		}
	},
	"model": "gpt-5"
}

Choosing Models

You can use any model from the models page.

ModelBest For
gpt-5Latest OpenAI flagship, highest quality
claude-opus-4-6Anthropic's most capable model
claude-sonnet-4-6Fast reasoning with extended thinking
gemini-3.1-pro-previewGoogle's latest flagship, 1M context window
o3Advanced reasoning tasks
gpt-5-miniCost-effective, quick responses
gemini-3.6-flashFast responses, good for high-volume
deepseek-v3.1Open-source with vision and tools

Autohand Code Features with OffRail

Terminal (CLI)

Autohand Code CLI works seamlessly with OffRail. Set the environment variables and use all Autohand Code commands as normal—multi-file editing, agentic search, and autonomous code generation all work out of the box.

IDE Integration

Autohand Code's VS Code and Zed extensions respect the same environment variables. Set them in your shell profile and the IDE integration will automatically route through OffRail.

Slack Integration

When using Autohand Code through Slack, configure the OffRail base URL in your Autohand Code server settings to route all Slack-triggered coding tasks through the gateway.

Monitoring Usage

Once configured, all Autohand Code requests appear in your OffRail dashboard:

  • Request logs — See every prompt and response
  • Cost breakdown — Track spending by model and time period
  • Usage analytics — Understand your AI usage patterns

View all available models on the models page.

Need help? Join our Discord community for support and troubleshooting assistance.

How is this guide?

On this page

Ready for production?

Ship to production with SSO, audit logs, spend controls, and guardrails your security team will approve.

Explore Enterprise