Tool setup guides

Cline Integration

Run Cline, the autonomous VS Code coding agent, on Claude and GPT models through Halfbill. One OpenAI-compatible endpoint, full cost tracking.

Cline is an autonomous AI coding assistant that lives in your VS Code editor. It can create and edit files, run terminal commands, and help you build complex projects. You can configure Cline to use Halfbill for Claude and GPT models with unified billing and 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).

Prerequisites

  • VS Code based IDE installed
  • A Halfbill API key

Setup

Cline supports OpenAI-compatible API endpoints, making it straightforward to integrate with Halfbill.

Install Cline Extension

  1. Open VS Code
  2. Go to the Extensions view (Cmd/Ctrl + Shift + X)
  3. Search for "Cline"
  4. Click Install on the Cline extension

Install Cline Extension

Open Cline Settings

  1. Click on the Cline icon in the VS Code sidebar
  2. Click the settings gear icon in the Cline panel

Cline Settings

Configure API Provider

  1. In the API Provider dropdown, select OpenAI Compatible
  2. Enter the following details:
    • Base URL: https://api.halfbill.uk/v1
    • API Key: Your Halfbill API key
    • Model ID: Choose a model (e.g., claude-sonnet-5, claude-opus-5, gpt-5.5). Copy exact IDs from the models page.

Test the Integration

  1. Open a project in VS Code
  2. Click on the Cline icon in the sidebar
  3. Type a message like "Create a hello world function in Python"
  4. Cline should respond and offer to create the file

Test Cline

All requests will now be routed through Halfbill.

View all available models on the models page.

Features

Once configured, you can use all of Cline's features with Halfbill:

Autonomous Coding

  • Create new files and projects from scratch
  • Edit existing code based on natural language instructions
  • Refactor and improve code quality

Terminal Commands

  • Run build commands, tests, and scripts
  • Install dependencies
  • Execute any terminal operation

File Management

  • Create, read, and modify files
  • Navigate your codebase
  • Search for relevant code

Model Selection Tips

Use the exact model ID as listed on the models page, without any prefix. For long agentic sessions, claude-sonnet-5 and gpt-5.5 are good defaults; claude-haiku-4-5 is faster and cheaper for small edits.

Need help? Email support@halfbill.uk.

Benefits of Using Halfbill with Cline

  • Claude and GPT in one place: Use models from Anthropic and OpenAI through a single API
  • Cost Control: Track and limit your AI spending with detailed usage analytics
  • Unified Billing: One account and one key for both model families
  • Caching: Reduce costs with response caching for repeated requests
  • Analytics: Monitor usage patterns and costs in the dashboard

How is this guide?

On this page