Nidhogg MCP for any AI
Plug Nidhogg into the agent you already use and create cinematic images and videos without leaving the conversation.
Grab the endpoint below β you'll paste it in the next step.
Add a custom connector, name it Nidhogg and paste the URL.
Click Add β Connect and sign in with your Nidhogg account β done. Ask Claude to generate an image.
Prefer a static token? (header-auth clients)
Sign in to generate a tokenManual config (mcp.json)
{
"mcpServers": {
"nidhogg": {
"url": "https://nidhogg.ai/api/mcp",
"headers": { "Authorization": "Bearer dby_β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’" }
}
}
}Canvas as API
Every canvas flow doubles as a callable pipeline β three MCP tools drive it from any agent, shell or CI. Same wallet, same models, hard cost cap built in.
List your canvases β id, name and node count. Pick the canvasId the other two tools need.
Dry-run quote: topological plan and per-node credit costs from the live catalog. Executes nothing, charges nothing.
Runs the flow server-side with real billing. Requires a hard maxCredits cap and an idempotencyKey β no cap, no run.
Example: an image pipeline in CI
Wire prompt β LLM rewrite β image generation on a canvas once, then let your release workflow call it: estimate first, gate on the quote, then run with the build number as the idempotency key. A retried job replays the same report instead of paying twice β and the finished art lands in your gallery.
β Quote it first β nothing runs, nothing is charged
curl -s https://nidhogg.ai/api/mcp \
-H "Authorization: Bearer dby_β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{
"name":"canvas_flow_estimate",
"arguments":{"canvasId":"YOUR_CANVAS_ID"}}}'β‘ Run it β hard cost cap + idempotency key
curl -s https://nidhogg.ai/api/mcp \
-H "Authorization: Bearer dby_β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’β’" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{
"name":"canvas_flow_run",
"arguments":{
"canvasId":"YOUR_CANVAS_ID",
"maxCredits":40,
"idempotencyKey":"ci-'"$GITHUB_RUN_ID"'"}}}'Cost safety
maxCredits is mandatory and checked before anything starts: if the quoted fixed-price total exceeds the cap β or any node has no catalog price β the run is rejected with zero spend. Token-billed LLM nodes are flagged in the quote and bounded by the server's per-turn cost cap.
Idempotency
One idempotencyKey = one run. Replaying the same key within 15 minutes returns the same report β a retried CI step can never start a second run. Each generation slot also derives a database-backed idempotency key, so even a crash-and-retry resumes the same jobs instead of re-charging.
One call is budgeted at up to ~55 s. Jobs still pending at the deadline keep running server-side β results land in your gallery and the canvas stays resumable.
Bridge: command the AI army on your machine
Route canvas Agent nodes to the claude / codex / gemini CLIs installed on your own computer β your subscription, your hardware, billed at β¦0.
Use the token button above to mint a dby_ personal access token. Shown once β store it safely.
A single zero-dependency file. All it needs is Node β₯ 18:
While the bridge is online, Agent nodes grow a βLocal enginesβ group. When it goes offline the group disappears β we never pretend it's connected.
How it works
Security
- βͺWhitelisted commands only: the script can execute exactly three binaries β claude, codex, gemini. The server cannot make it run anything else.
- βͺPrompts are data, not shell: subprocesses launch with argv arrays, never through a shell β any character in a prompt is just text.
- βͺLeave anytime: Ctrl-C exits gracefully. The token lives only on your machine and can be revoked in settings.
Local engines on the canvas β β¦0
Local runs spend your own agent subscription and your own compute, so the platform charges nothing β the bridge path contains no billing code at all.
Frequently asked
We've answered the questions that come up most.
Nidhogg uses MCP (Model Context Protocol), an open standard that gives AI agents access to external tools.
YOUR AI STACK JUST LEVELED UP
Connect Nidhogg in 30 seconds
One server URL. Every model. Right inside the agent you already use.
Get started