Using OpenHands with NanoGPT
A quick guide to setting up OpenHands with NanoGPT’s API.Setup Instructions
- Get your API key from nano-gpt.com/api
- In OpenHands, add a new LLM Endpoint and toggle “Advanced”.
- Configure the fields as follows:
- Custom Model:
openai/<MODEL_NAME_FROM_NANOGPT>- Example:
openai/openai/gpt-5.6-sol(OpenHands’ firstopenai/selects its OpenAI-compatible adapter; the rest is the NanoGPT model ID.) - If a model name contains a slash, include it: e.g.
openai/anthropic/claude-opus-5.5oropenai/google/gemini-flash-latest
- Example:
- Base URL:
https://api.nano-gpt.com/api/v1(no trailing slash) - API Key: Your key from step 1
- Search API Key (Tavily): Optional
- Agent:
CodeActAgent(recommended)
- Custom Model:
Important Notes
- The Base URL must NOT end with a
/. Usehttps://api.nano-gpt.com/api/v1exactly. - Prefix the model with
openai/and use the exact model name as shown by the NanoGPT API or on our pricing page.
openai/gpt-5.6-sol, anthropic/claude-opus-5.5, and google/gemini-flash-latest. For a full list, check our pricing page.