The open-source engine behind Dynamiq.
pip install dynamiqIn short
dynamiq is an open-source Python framework for building AI agents, multi-agent workflows and retrieval pipelines, licensed Apache-2.0. It is the same engine that runs the Dynamiq platform, so code you write locally deploys with traces, evals and guardrails.
What is in the SDK
- Agents with tools
- Give an agent a model, a role and tools such as web search, code execution and your own functions.
- Graph orchestration
- Compose multi-step and multi-agent workflows with explicit state and conditional routing.
- Retrieval and RAG
- Ingest, split and embed documents with 8 embedding providers and 8 vector stores.
- Any model
- Swap between 29 model providers without rewriting your agent.
- Memory
- Keep conversation and long-term memory in one of 8 memory backends.
- Tracing to the platform
- Send runs to Dynamiq for traces, evals and deployment when you need governance.
An agent in one Python file
from dynamiq.connections import Anthropic as AnthropicConnection
from dynamiq.connections import Tavily as TavilyConnection
from dynamiq.nodes.agents import Agent
from dynamiq.nodes.llms import Anthropic
from dynamiq.nodes.tools.tavily import TavilyTool
agent = Agent(
name="research-agent",
llm=Anthropic(
connection=AnthropicConnection(),
model="claude-sonnet-5",
),
tools=[TavilyTool(connection=TavilyConnection())],
role="Research assistant that answers with current sources.",
)
question = "What did central banks decide this week?"
result = agent.run(input_data={"input": question})
print(result.output["content"])Start building
Questions and answers
What license is the dynamiq SDK under?
Apache-2.0. You can use, modify and distribute it, including in commercial products.
How is the SDK related to the Dynamiq platform?
The platform runs on the same engine. Agents built in Python and agents built on the visual canvas deploy the same way, with the same traces, evals and guardrails.
Do I need the platform to use the SDK?
No. The SDK runs anywhere Python runs. Connect it to the platform when you want deployment, observability, evals and governance without building them yourself.
How do I contribute?
Open an issue or a pull request on GitHub. The repository has contribution guidelines, examples and release notes.

Take it to production on the platform.
Deploy your code-built agents with traces, evals, guardrails and approvals, in our cloud or yours.