Autohand Code Integration
Use Claude and GPT models 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 Halfbill, you can route all Autohand Code requests through a single API and use Claude and GPT models with full cost tracking.
Using Halfbill Code? This integration also works with a Halfbill
Code plan key. Use the canonical model IDs from
the catalogue (for example claude-sonnet-5).
Setup
Sign Up for Halfbill
Sign up, then create an API key in the dashboard and copy it when shown.
Set Environment Variables
Configure Autohand Code to use Halfbill:
export OPENAI_BASE_URL=https://api.halfbill.uk/v1
export OPENAI_API_KEY=llmgtwy_your_api_key_hereWhy Use Halfbill with Autohand Code
- Claude and GPT — Anthropic and OpenAI models at half list price
- 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
Configuration File
You can also configure Halfbill in Autohand Code's config file:
{
"provider": {
"halfbill": {
"baseUrl": "https://api.halfbill.uk/v1",
"apiKey": "llmgtwy_your_api_key_here"
}
},
"model": "gpt-5.5"
}Choosing Models
You can use any model from the models page.
| Model | Best For |
|---|---|
gpt-5.5 | OpenAI flagship, strong general coding |
claude-opus-5 | Anthropic's most capable model |
claude-sonnet-5 | Fast reasoning with extended thinking |
claude-haiku-4-5 | Cost-effective, quick responses |
gpt-5.6-terra | Latest GPT generation, balanced cost |
gpt-6-astra | Most capable GPT model for complex tasks |
Autohand Code Features with Halfbill
Terminal (CLI)
Autohand Code CLI works with Halfbill out of the box. Set the environment variables and use all Autohand Code commands as normal — multi-file editing, agentic search, and autonomous code generation.
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 Halfbill.
Slack Integration
When using Autohand Code through Slack, configure the Halfbill base URL in your Autohand Code server settings to route all Slack-triggered coding tasks through Halfbill.
Monitoring Usage
Once configured, all Autohand Code requests appear in your Halfbill dashboard:
- Request logs — See every request with model, tokens, and cost
- 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? Email support@halfbill.uk.
How is this guide?