Credentials. Your provider API key lives in .env.local.
Who it is forA team that cannot send diagrams to a public demo.
The problemPublic demos are not suitable for internal designs.
The outcomeA private instance using your own model provider.
What you need first
- Node.js
- An LLM provider key for the web app
Steps
- Run
git clone https://github.com/DayuanJiang/next-ai-draw-ioandcd next-ai-draw-io - Run
npm install - Copy env.example to .env.local and add your provider and key
- Start with
npm run dev
Prompt for your agent
Self-host next-ai-draw-io with <provider>, generate one diagram, and confirm requests went to my provider only.
Caveat. A desktop app is also available if you prefer not to run a server.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for DayuanJiang/next-ai-draw-io and "Self-host the diagram app with your own model"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer