Back to Blog

Using OpenHands with NanoGPT

Aug 11, 2025

Want to use OpenHands with NanoGPT? Here's all you need to know.

Setup Instructions

  1. Get your API key from nano-gpt.com/api
  2. In OpenHands, go to Settings → LLM Endpoints → Add Endpoint, then enable Advanced.
  3. Fill in the fields as follows:
    • API Provider: OpenAI Compatible
    • Base URL: https://nano-gpt.com/api/v1 (no trailing slash)
    • API Key: Your key from step 1
    • Model ID: openai/[[model name as reported by NanoGPT]] (include any / if present)
      • Examples: openai/o1, openai/claude-3-5-sonnet-20241022, openai/gpt-4o, openai/deepseek/deepseek-chat
  4. Save and select this endpoint as your default in OpenHands.

That's it! You can now use OpenHands with any model offered by NanoGPT. Model names are on our pricing page.

Important notes

  • The Base URL must NOT end with a /.
  • The Model ID must be prefixed with openai/ and should match the model name exactly as reported by NanoGPT, including any nested segments like deepseek/deepseek-chat.

Need a visual guide? See the screenshot below.

OpenHands Settings