THE INTEGRATION GUIDE
SDKs
HashBid is compatible with the official OpenAI and Anthropic SDKs. Simply change the base URL and API key to point at your HashBid instance.
OpenAI SDK (Python)
Works with /v1/chat/completions, /v1/responses, /v1/embeddings, /v1/images/generations, and /v1/models.
from openai import OpenAI
client = OpenAI(
api_key="<YOUR_API_KEY>",
base_url="https://hashbidx.ai/v1",
)
# Use exactly like the standard OpenAI SDK
result = client.chat.completions.create(
model="<MODEL_ID>",
messages=[{"role": "user", "content": "Hello"}],
)
print(result.choices[0].message.content)OpenAI SDK (Node.js)
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "<YOUR_API_KEY>",
baseURL: "https://hashbidx.ai/v1",
});
const result = await client.chat.completions.create({
model: "<MODEL_ID>",
messages: [{ role: "user", content: "Hello" }],
});
console.log(result.choices[0].message.content);Anthropic SDK (Python)
For the /v1/messages endpoint. Note: set base_url to the root URL; the SDK appends /v1/messages itself.
import anthropic
client = anthropic.Anthropic(
api_key="<YOUR_API_KEY>",
base_url="https://hashbidx.ai",
)
message = client.messages.create(
model="<MODEL_ID>",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
print("".join(block.text for block in message.content if block.type == "text"))Coding agents and CLIs
Step-by-step setup for Claude Code, Codex, Gemini CLI, OpenCode, and OpenClaw lives under Developer Tools.
Claude Code
Anthropic's agentic coding tool for the terminal. Point it at HashBid with three environment variables.
POST /v1/responsesCodex
OpenAI's coding agent for the terminal and VS Code. Register HashBid as a custom provider that speaks the `Responses` API.
POST /v1/gemini/v1beta/models/{model}:streamGenerateContentGemini CLI
Google's terminal AI agent. HashBid serves the native Gemini protocol, so the official CLI works with a few environment variables and one settings entry.
POST /v1/chat/completionsOpenCode
An open-source AI coding agent with a terminal UI. Add HashBid as a custom provider in its config file.
POST /v1/chat/completionsOpenClaw
A personal AI assistant that runs on your machine. Connect it as an OpenAI-compatible custom provider with a single setup command.
Other OpenAI-compatible tools
Any tool that supports a custom OpenAI base URL can connect to HashBid. This includes LobeChat, NextChat, Cursor, Continue, and similar applications. Set the API base to https://hashbidx.ai/v1 and enter your API key. Refer to each tool's documentation for the exact configuration field names.