Tool setup guides

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_here

Run Autohand Code

autohand

All requests will now be routed through Halfbill.

Why 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.

ModelBest For
gpt-5.5OpenAI flagship, strong general coding
claude-opus-5Anthropic's most capable model
claude-sonnet-5Fast reasoning with extended thinking
claude-haiku-4-5Cost-effective, quick responses
gpt-5.6-terraLatest GPT generation, balanced cost
gpt-6-astraMost 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?

On this page