Maple Proxy
Get started with Maple Proxy
Connect AI tools with Maple Work's Local API or Maple Research's Local Proxy. Create a key, copy the local base URL and send your first Chat Completions request.
Maple Proxy gives tools that support OpenAI Chat Completions a local endpoint for Maple’s private models. It verifies Maple’s secure enclave and encrypts traffic from the proxy to Maple. Inference runs through Maple; the local endpoint connects your application to that service.
API access requires Pro, Max or Team. API usage draws from your plan’s usage first, then from any extra credits you’ve bought. See pricing.
Desktop app
Choose the instructions for your app: Maple Work uses Local API; Maple Research uses Local Proxy. Both connect tools on your computer to Maple.
Maple Work
For installed Maple Work builds with Settings → Local API:
- Sign in to Maple Work.
- Open Settings → API keys, enter a name and select Create key. Copy the key; it is shown only once.
- Open Settings → Local API and turn on Enable local API.
- Wait for Running on this computer, then copy the OpenAI-compatible base URL and connect your application.
Local API is off until you enable it. Its default base URL is http://127.0.0.1:8080/v1; use the URL shown in your app if you change the port. Turn the API off before editing the port. If another application uses that port, choose an unused one and enable the API again.
Every /v1/ request needs your real Maple key. Work does not save a fallback key for the local API. Use it from desktop applications, command-line tools or server clients; browser-origin requests are blocked.
The port always runs on this computer, including when you select a remote agent. Configure your AI application on the same computer with the displayed loopback URL. Closing the Work window can leave the API running; turning it off, signing out or choosing Quit Maple stops it.
Maple Research
The Maple Research desktop app includes Local Proxy for macOS, Windows and Linux.
- Download Maple and sign in.
- Open Settings, then API & credits under Developer.
- Open the Local Proxy tab and select Start proxy.
Research creates and saves a proxy key if you have not set one. Copy the base URL from this screen; the default is http://127.0.0.1:8080/v1. Keep Research open while using connected tools.
With Research’s default CORS setting off, this request uses the saved key because it omits Authorization:
curl -N http://127.0.0.1:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-oss-120b",
"messages": [{"role": "user", "content": "Write a haiku about privacy"}],
"stream": true
}' The first request can take longer while the proxy verifies the enclave. For problems starting it, see troubleshooting.
Desktop settings
In Research’s Advanced settings, change the port, enable Auto-start when Maple launches, or select Enable CORS for browser clients. With CORS on, every client must send its own key. See authentication.
Connect an application
Choose an OpenAI-compatible / Chat Completions provider and enter:
| Setting | Value |
|---|---|
| Base URL | http://127.0.0.1:8080/v1 (or the URL shown in Maple) |
| API key | Your real Maple API key; create a key. Work requires it on every API request. |
| Model | An exact ID from models and capabilities |
Some applications expect the URL without /v1; check their instructions. Placeholder keys fail authentication, including when Research has a saved key.
For a first streaming request through either app, export your key in the shell making the request and use the port shown in Maple:
export MAPLE_API_KEY='your-real-maple-api-key'
curl -N http://127.0.0.1:8080/v1/chat/completions \
-H "Authorization: Bearer $MAPLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-oss-120b",
"messages": [{"role": "user", "content": "Write a haiku about privacy"}],
"stream": true
}' Follow the OpenCode or Goose guide, or use the API reference for your own application.
Keep the proxy local
Traffic between your application and the proxy is plaintext. Keep the host on 127.0.0.1 for tools on your computer. If that traffic leaves your machine, protect it with TLS and a trusted network boundary.
Docker or binary
Run a dedicated proxy beside your service or on a machine without the desktop app. See Docker and binary setup.