Agents
LLMTune offers an Agent API for coding assistants: OpenAI-compatible chat with optional tools (read_file, write_file, list_directory, run_terminal, search_replace). Use it with Cursor, Continue.dev, or any OpenAI-compatible client. Tools are executed on your side; the API returnstool_calls for the client to run.
Base URL
Agent endpoints are served at:Authorization: Bearer sk_...).
List models
Get the list of models available for the Agent API (Standard / inference-supported, non-confidential):?active=false to include inactive models. Response shape:
Chat with tools
Send chat completions with optional tools:Authorization: Bearer sk_YOUR_API_KEYContent-Type: application/json
choices[].message with optional tool_calls. Execute each tool locally (e.g. in your IDE), then send the results back in a follow-up message.
Supported tools
Typical tools exposed for coding agents:- read_file – Read contents of a file
- write_file – Write or overwrite a file
- list_directory – List directory contents
- run_terminal – Run a terminal command
- search_replace – Search and replace in a file
Errors
- 401 – Invalid or missing API key
- 503 – Agent/inference service not configured (check deployment and environment)
Next steps
- API Overview for authentication and base URLs
- Inference API for standard chat completions without tools
- In-app API Docs for live examples