What is Dynamiq?
Dynamiq is an open-source orchestration framework for agentic AI and LLM applications, written in Python and released under the Apache 2.0 license. Its README calls it an all-in-one generative-AI framework that specialises in orchestrating retrieval-augmented generation (RAG) and LLM agents. It sits in the App Frameworks category of the App Orchestration tools and is open-source, written in Python and licensed Apache-2.0.
Overview
Dynamiq is an open-source orchestration framework for agentic AI and LLM applications, written in Python and released under the Apache 2.0 license. Its README calls it an all-in-one generative-AI framework that specialises in orchestrating retrieval-augmented generation (RAG) and LLM agents.
Everything in Dynamiq is a node: an LLM call, an agent, a tool, a document converter, a splitter, an embedder, a vector-store writer or retriever. Nodes are added to a Workflow, which runs them as a graph. Independent nodes run in parallel, and nodes declared with dependencies run in order, with an input transformer that maps one node's output into the next node's input.
Agents are ReAct-style nodes with a role, an LLM, a list of tools and a loop limit. Because an agent can itself be passed as a tool, a manager agent can delegate work to research and writing sub-agents. The same Workflow model covers RAG: an indexing flow that turns PDFs into embeddings in a vector database, and a retrieval flow that embeds a question, fetches the top documents and answers from them. It sits alongside LangChain, LlamaIndex and Haystack, and requires Python 3.10 or later.
What it does
- Workflow engine that runs nodes in parallel or in sequence, with explicit dependencies and input transformers between nodes
- ReAct agents with roles, tool use, loop limits and asynchronous execution; agents can be used as tools by a manager agent for multi-agent orchestration
- Code-execution tools backed by E2B, Daytona and AWS Bedrock AgentCore Code Interpreter sandboxes
- RAG building blocks: PDF converters, document splitters, embedders, and writers and retrievers for vector stores such as Pinecone
- Prompt templates with Jinja-style variables, plus chatbot memory and a graph orchestrator, each shown in the README examples
- Installable from PyPI as dynamiq, or from source with uv
Getting started
Install the package, run a single LLM node, then chain two agents in a Workflow. The examples come from the project's README and use OpenAI, so they need an OpenAI API key.
Install Dynamiq
Dynamiq needs Python 3.10 or later. Install it from PyPI, or clone the repository and sync it with uv to build from source.
pip install dynamiq
# or build from source
git clone https://github.com/dynamiq-ai/dynamiq.git
cd dynamiq
uv syncRun a simple LLM flow
An LLM node takes a connection, a model and a prompt. Calling run() fills the template variables from input_data.
from dynamiq.nodes.llms.openai import OpenAI
from dynamiq.connections import OpenAI as OpenAIConnection
from dynamiq.prompts import Prompt, Message
prompt_template = """
Translate the following text into English: {{ text }}
"""
prompt = Prompt(messages=[Message(content=prompt_template, role="user")])
llm = OpenAI(
id="openai",
connection=OpenAIConnection(api_key="OPENAI_API_KEY"),
model="gpt-4o",
temperature=0.3,
max_tokens=1000,
prompt=prompt
)
result = llm.run(
input_data={
"text": "Hola Mundo!"
}
)
print(result.output)Chain two agents in a Workflow
The second agent depends on the first, and an InputTransformer feeds the first agent's answer into it. The Workflow runs them in order, so you don't pass outputs between them by hand.
from dynamiq import Workflow
from dynamiq.nodes.llms import OpenAI
from dynamiq.connections import OpenAI as OpenAIConnection
from dynamiq.nodes.agents import Agent
from dynamiq.nodes.node import InputTransformer, NodeDependency
llm = OpenAI(
connection=OpenAIConnection(api_key="OPENAI_API_KEY"),
model="gpt-4o",
temperature=0.1,
)
first_agent = Agent(
name="Expert Agent",
llm=llm,
role="Professional writer with the goal of producing well-written and informative responses.",
id="agent_1",
max_loops=5
)
second_agent = Agent(
name="Poetic Rewriter Agent",
llm=llm,
role="Professional writer with the goal of rewriting user input as a poem without changing its meaning.",
id="agent_2",
depends=[NodeDependency(first_agent)],
input_transformer=InputTransformer(
selector={"input": f"${[first_agent.id]}.output.content"}
),
max_loops=5
)
wf = Workflow()
wf.flow.add_nodes(first_agent)
wf.flow.add_nodes(second_agent)
result = wf.run(
input_data={"input": "How are sin(x) and cos(x) connected in electrodynamics?"},
)
print(result.output[second_agent.id].get("output").get("content"))Go further
The README also has examples for multi-agent orchestration, RAG indexing and retrieval with Pinecone, a chatbot with memory and the graph orchestrator. The documentation at dynamiq-ai.github.io/dynamiq has Quickstart, Agents and RAG tutorials and the API reference.
Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Build a RAG service that indexes PDFs into a vector database and answers questions from the retrieved passages
- Run a manager agent that delegates research and writing to specialised sub-agents and assembles the result
- Give an agent a sandboxed code interpreter (E2B, Daytona or Bedrock AgentCore) to solve data and coding tasks
- Chain several LLM and agent steps into one workflow, with parallel branches where steps are independent
How Dynamiq compares
Dynamiq alongside other open-source app frameworks tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| LangChain | ★ 150k | A widely used Python and JavaScript framework for building LLM applications by composing models, prompts, tools, retrievers, and memory into chains. |
| LlamaIndex | ★ 53.1k | A data framework for connecting language models to your own documents and data sources, with built-in agent and retrieval (RAG) tooling. |
| Haystack | ★ 27.1k | An orchestration framework from deepset for building modular LLM pipelines and agents for search, RAG, and question answering. |
| Jina | ★ 21.9k | Jina-serve is a Python framework for building, scaling, and deploying AI services and multi-step pipelines that communicate over gRPC, HTTP, and WebSockets. |
| RocketRide | ★ 19.9k | Open-source AI meta-harness on a C++ runtime: build, test and run AI agents and RAG pipelines from VS Code, the CLI, Python/TypeScript SDKs or its built-in MCP server |
| LLM | ★ 12.9k | Simon Willison's plugin-extensible CLI and Python library for prompting remote and local models, logging every prompt and response to SQLite, and generating embeddings. |
| Prompt Flow | ★ 11.3k | Microsoft's toolkit for building LLM apps as executable flows that link prompts, Python code, and tools, with tracing, batch evaluation, and deployment. |
| Dynamiq | ★ 1.1k | Open-source Python framework for orchestrating LLM agents and RAG workflows |
