Skip to content

Installation

DyUI is one Python package. It contains the server, the CLI and the compiled chat app, so there is no Node.js or frontend build step.

Terminal window
pip install dyui

DyUI needs Python 3.10 or newer. Its core dependencies are FastAPI, Uvicorn, pydantic, watchfiles and python-multipart.

Model SDKs are optional and imported only when you use them. Install the extra for your provider:

Extra Installs Use it for
dyui[openai] openai OpenAI, plus every OpenAI-compatible provider: Ollama, Groq, OpenRouter, Together, DeepSeek, Gemini, Mistral, xAI, NVIDIA NIM
dyui[anthropic] anthropic Claude models through the Anthropic SDK
dyui[langgraph] langgraph>=1.0 Streaming LangGraph agents
dyui[all] all of the above Trying everything
Terminal window
pip install "dyui[openai]"

If you call a provider whose SDK isn’t installed, dyui.llm.stream raises a MissingDependencyError that names the extra to install.

Each provider also needs an API key. API keys & environment lists where to get one and how to set it on every operating system.

Terminal window
dyui version
dyui demo # a guided tour at http://localhost:8000, no API key needed

DyUI 1.0 is a rewrite with a different API. The server extra no longer exists because the server is part of the core package. See Upgrading from 0.1 in the changelog.

DyUI Docs assistant

Answers come from the DyUI docs. gpt-oss-120b via Groq. Press Escape or the close button to return to the page.