Nano GPT logo
NanoGPT

Private AI

Back to Blog

Using OpenHands with NanoGPT

Aug 11, 2025
Using OpenHands with NanoGPT

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.

Milan de Reede

Milan de Reede

CEO & Co-Founder

milan@nano-gpt.com

Related articles

Continue with more NanoGPT guides and research on this topic.

Setting up LibreChat with NanoGPT's API

Learn how to configure LibreChat to work with NanoGPT's API through a simple YAML configuration.

Mar 28, 2025

How to Build Tool-Using AI Workflows with the Responses API

A practical guide to custom tools, public MCP servers on supported OpenAI models, streaming tool calls, and stored response chains in NanoGPT's Responses API.

Jul 21, 2026

Use Your Own AI API Keys Without Losing a Safety Net

How NanoGPT's automatic BYOK preference uses your saved provider keys first, falls back to credits when appropriate, and lets you choose stricter behavior when needed.

Jul 20, 2026

Advisor API: Give Your AI a Second Opinion

NanoGPT's Advisor API lets one model ask a different model for a focused second opinion before giving you its final answer.

Jul 16, 2026
Back to Blog