memtrunk documentation
Guides and reference for the memtrunk gateway. Connect Claude Code, Codex CLI and Antigravity CLI, manage keys, and look up endpoints, headers and errors.
Last updated
memtrunk is a gateway between your coding tools and AI providers. It also has a console where you manage keys, accounts and settings. These docs explain both parts for developers.
Where to start#
- To learn the request path, read the overview.
- To send a first request, follow the quickstart.
- To use Claude Code, read Connect Claude Code.
- To use Codex CLI, read Connect Codex CLI.
- To use Antigravity CLI, read Use other clients.
- To look up an endpoint or a header, open the endpoints reference.
What each section covers#
- Getting started shows how a request travels and how to connect a coding tool.
- Concepts explains keys, account pools, provider keys, routing rules, spend limits, memory, usage and request logs.
- Teams and administration explains roles, teams, organizations and sign-in.
- Reference lists endpoints, authentication headers, errors, client variables and terms, and answers common questions.
How to read the examples#
Examples use two placeholders. Replace <your-memtrunk-address> with the address that the console shows. Replace <your-memtrunk-key> with a memtrunk key that you create in the console.
Never paste a real key into a shared file or a public place.