Documentation
Getting started
Kakehashi speaks the OpenAI API. If your code already calls an OpenAI-compatible endpoint, the integration is a base URL and a key — and this page walks the whole way there, from the invitation email to your first answer.
1. Getting access
Kakehashi is invite-only. There is no self-service sign-up form: an operator invites your email address, and only an invited address can sign in or hold a key. If you have not been invited yet, write to kakehashi@classmethod.my.
If your company already uses Kakehashi you do not need us at all — an administrator in your own organization can invite you from their portal. See Organizations and groups.
2. Signing in
Open the portal and enter the address that was invited. Three ways in are offered, and they all end in the same place:
- Email link — we email you a one-time sign-in link. Nothing to remember, nothing to leak.
- Email and password — create a password the first time. You will be asked to verify the address by email before the account works.
- Continue with Google — if your work email is a Google account.
3. Choosing a plan
The first time you sign in you are asked one question: whether Kakehashi is just for you, or for a team. If a colleague invited you into their organization, you are already on the Organization plan and skip it.
- Just for me (Individual plan) — you issue and manage your own keys, and your credit is yours alone. An Individual-plan account cannot join or create an organization later.
- Set up an organization (Organization plan) — you become the organization's first admin. Credit is shared with everyone you invite, and spending can be split into groups with their own limits. You can create further, fully separate organizations later from the avatar menu.
Your billing country decides the currency you are charged in and the tax that applies. New accounts are opened in Malaysia and billed in Malaysian ringgit; the page tells you so rather than asking.
4. Issuing an API key
Keys live on the portal's API Keys page. Give a key a label you will recognise later, and optionally a budget cap; leaving the cap empty means the key may spend the whole balance it draws on.
If you are a plain member of an organization you will not see a form to issue a key. An admin grants one to you instead, and a Keys waiting for you card appears on your dashboard with a Collect key button. The key is created at the moment you collect it, so not even the admin who granted it ever sees the value.
5. Your first request
Point your existing OpenAI client at the Kakehashi base URL and pass your key as a bearer token. The model name in the request body decides which model answers.
curl https://api.kakehashi.classmethod.my/v1/chat/completions \
-H "Authorization: Bearer $KAKEHASHI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "<model-id>", "messages": [{"role": "user", "content": "Hello"}]}'Replace $KAKEHASHI_API_KEY with the key you just copied, and <model-id> with a model id from the catalogue. Once you are signed in, the portal's Models page shows these same snippets with the model you picked already filled in.
Which base URL to use
The base URL for this environment is https://api.kakehashi.classmethod.my. The OpenAI SDKs want it with /v1 appended; the Claude Code CLI wants it without. The snippets above already do the right thing for each.
Claude Code and the context window
The Claude Code snippet sets one variable the others do not: CLAUDE_CODE_MAX_CONTEXT_TOKENS. The CLI knows the context window of Anthropic's own model names only, and the names here are Kakehashi's, so without it the CLI warns that the model is unrecognised and assumes a 200,000-token window.
That assumption is not only cosmetic. Recent versions compact the conversation to fit the window they believe in, so a model with a larger window is trimmed long before it is full and the context you are paying for is thrown away. Set the variable to the model's context window from the catalogue; once you are signed in, the portal's Models page fills the number in for you when you pick a model.
6. Adding credit
A new account has no balance, and requests are refused once the balance is used up. Add credit from the portal's Top up page: you buy a fixed amount of US-dollar credit and pay in your own currency at that day's exchange rate.
In an organization only an organization admin can top up; everyone else spends the shared balance. The full rules are in Billing and credit.
Where to go next
- Set a warning threshold, so you hear about a shrinking balance before it stops your traffic — Notifications.
- Learn what each status code means before you meet one in production — Errors and limits.
- Invite your colleagues and split the budget — Organizations and groups.