Skip to main content
nanobot ships Eden AI as a built-in provider named edenai that points at https://api.edenai.run/v3, so setup is one API key and one model preset.

Overview

nanobot is an ultra-lightweight Python agent framework you host yourself, with a WebUI, tools, memory, MCP support and multi-agent workflows. Because Eden AI is a built-in provider, there is no custom endpoint to declare. Once your key is saved, nanobot can also load the Eden AI model list into its WebUI.

Prerequisites

  • nanobot 0.3.5 or later. Earlier releases (0.3.0 and before) have no edenai provider. Check with nanobot --version and upgrade if needed:
The nanobot quick start also covers its installer script and uv or pipx installs.

Setup

1. Add Eden AI to your config

nanobot reads ~/.nanobot/config.json, which nanobot onboard or the first WebUI launch creates. Add the edenai provider and point a model preset at it. The base URL is built into the provider, so you only supply the key:
Keep the key in the environment rather than in the file. nanobot expands ${EDENAI_API_KEY} when it loads the config, so start it from a shell that exports the variable. If the variable is unset, nanobot refuses to load the config and reports Environment variable 'EDENAI_API_KEY' is not set.

2. Export your key

3. Start nanobot

nanobot opens a terminal chat. Run nanobot webui for the browser UI instead, nanobot status to see the selected preset and that the edenai provider is configured, or nanobot agent -m "Hello!" for a one-shot check. If your config predates a schema change, run nanobot onboard --refresh first. It fills in missing default fields and leaves your existing values alone.

Model naming

Use a model name or ~ alias from GET /v3/models, such as ~claude-sonnet-latest; a provider/model id pins one provider. nanobot forwards the model unchanged, so the preset above sends ~gemini-flash-latest as is. The live catalogue is public and needs no authentication, so you can browse it before choosing:

Switching models

Change one value to move a preset to another vendor:
You can also load the catalogue from the WebUI under Settings → Models once the Eden AI key is saved.

Expert Models as Tools (MCP)

Eden AI also hosts an MCP server that exposes the expert model catalog (OCR, web search, speech, translation and more) as tools. Add it under tools.mcpServers in ~/.nanobot/config.json:
~/.nanobot/config.json
nanobot expands ${EDENAI_API_KEY} in headers the same way as in providers, so this reuses the key you exported in step 2. type is optional: nanobot picks streamable HTTP for any URL that does not end in /sse. Each tool call times out after 30 seconds by default (toolTimeout), so raise it for slow expert models. See the MCP server page for the full tool catalog and the conventions its tools share.

Troubleshooting

Environment variable 'EDENAI_API_KEY' is not set.

nanobot stops at load time because the config references ${EDENAI_API_KEY} and the shell that started it does not export it. Export the variable in that shell, then start nanobot again.

401 / Invalid API key or Invalid token

The key was sent but Eden AI does not recognize it: it answers Invalid API key for a wrong or revoked sk-eden-... key and Invalid token for a token of any other shape. Check that the value is an Eden AI key rather than a vendor key, and create a fresh one at app.edenai.run → API Keys if needed.

Model(s) not found or inactive

Eden AI returns this 400 when the model ID is not in the catalogue. Copy the ID exactly as GET /v3/models returns it, ~ included.

Timeouts on long turns

nanobot caps OpenAI-compatible requests with NANOBOT_OPENAI_COMPAT_TIMEOUT_S, 120 seconds by default. Raise it if you use large reasoning models.

Next Steps