Metadata-Version: 2.5
Name: domyn
Version: 0.5.5a2
Summary: Build AI agents in Python or YAML, run them on any model, and work with them from the terminal.
Project-URL: Homepage, https://github.com/domynai/domyn-agents
Project-URL: Documentation, https://domynai.github.io/domyn-agents/
Project-URL: Repository, https://github.com/domynai/domyn-agents
Project-URL: Issues, https://github.com/domynai/domyn-agents/issues
Author-email: Domyn <agents@domyn.com>
License: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Keywords: agents,ai,framework,ioc,llm,registry
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.12
Requires-Dist: aiosqlite>=0.21.0
Requires-Dist: cashews>=3.0.0
Requires-Dist: fastapi>=0.121.3
Requires-Dist: fastmcp<5.0.0,>=4.1.2
Requires-Dist: firecrawl-anydoc<0.3,>=0.2.4
Requires-Dist: httpx-sse>=0.4.0
Requires-Dist: httpx2>=2.13.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: markdown-it-py>=2.2.0
Requires-Dist: nest-asyncio>=1.6.0
Requires-Dist: packaging>=23.0
Requires-Dist: pdf-inspector<2,>=1.25.2
Requires-Dist: pillow>=13.0.0
Requires-Dist: pydantic-settings>=2.7
Requires-Dist: pydantic>=2.0.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: python-ulid>=3.1.0
Requires-Dist: pyyaml>=6.0.0
Requires-Dist: rich>=13.0.0
Requires-Dist: tomlkit>=0.15.1
Requires-Dist: typer>=0.24.1
Requires-Dist: typing-extensions>=4.0.0
Requires-Dist: websockets>=13.0
Provides-Extra: audio
Requires-Dist: onnx-asr[cpu,hub]>=0.12.0; (python_version < '3.15') and extra == 'audio'
Requires-Dist: sounddevice>=0.5.0; extra == 'audio'
Provides-Extra: cli
Requires-Dist: prompt-toolkit>=3.0.50; extra == 'cli'
Provides-Extra: kafka
Requires-Dist: aiokafka>=0.11.0; extra == 'kafka'
Provides-Extra: langchain
Requires-Dist: langchain-core>=1.3.3; extra == 'langchain'
Requires-Dist: langchain-openai>=1.0.0; extra == 'langchain'
Requires-Dist: langchain>=1.0.0; extra == 'langchain'
Provides-Extra: langgraph
Requires-Dist: langchain-core>=1.3.3; extra == 'langgraph'
Requires-Dist: langgraph>=1.0.0; extra == 'langgraph'
Requires-Dist: websockets<18; extra == 'langgraph'
Provides-Extra: slack
Requires-Dist: slack-bolt>=1.20.0; extra == 'slack'
Requires-Dist: slack-sdk>=3.27.0; extra == 'slack'
Provides-Extra: telegram
Requires-Dist: python-telegram-bot>=21.0; extra == 'telegram'
Provides-Extra: tracing
Requires-Dist: opentelemetry-api>=1.28.0; extra == 'tracing'
Requires-Dist: opentelemetry-sdk>=1.28.0; extra == 'tracing'
Description-Content-Type: text/markdown

<div align="center">

<picture>
  <source srcset="https://raw.githubusercontent.com/DomynAI/domyn-agents/main/docs/static/img/logo-white.svg" media="(prefers-color-scheme: dark)">
  <source srcset="https://raw.githubusercontent.com/DomynAI/domyn-agents/main/docs/static/img/logo.svg" media="(prefers-color-scheme: light)">
  <img src="https://raw.githubusercontent.com/DomynAI/domyn-agents/main/docs/static/img/logo.svg" alt="Domyn" height="60">
</picture>

A fast and secure agent harness that gets real work done on your computer, with you in control.

[![CI](https://github.com/domynai/domyn-agents/actions/workflows/ci.yml/badge.svg)](https://github.com/domynai/domyn-agents/actions/workflows/ci.yml)
[![Coverage](https://github.com/domynai/domyn-agents/raw/coverage-badge/coverage-badge.svg)](https://github.com/domynai/domyn-agents/actions/workflows/ci.yml)
[![Python](https://img.shields.io/badge/python-3.12%20%7C%203.13%20%7C%203.14%20%7C%203.15-blue)](https://github.com/domynai/domyn-agents/actions/workflows/ci.yml?query=branch%3Amain)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue)](https://github.com/DomynAI/domyn-agents/blob/main/LICENSE)
[![Docs](https://img.shields.io/badge/docs-domynai.github.io-blue)](https://domynai.github.io/domyn-agents/)
[![Built by Domyn](https://img.shields.io/badge/built%20by-Domyn-0000FF)](https://domyn.com)

[Documentation](https://domynai.github.io/domyn-agents/) · [Examples](https://github.com/DomynAI/domyn-agents/blob/main/examples/) · [Contributing](https://github.com/DomynAI/domyn-agents/blob/main/CONTRIBUTING.md)

</div>

---

Domyn Agents turns any AI model into an assistant that works on your computer. It is great for coding, research, automation and complex tasks with many steps. Setup takes one command and about a minute, and it works with Domyn's models, open models and hosted APIs. It delivers high performance on real work, and it keeps costs low on long tasks by shortening the conversation automatically before it outgrows the model.

Domyn Agents is secure by design and leaves you in control. It asks for your approval before it executes a dangerous command, and it runs commands in a container by default, away from your credentials and personal files. It is enterprise grade and production ready, and the same configuration runs on a laptop and in a company deployment.

<br>

<div align="center">
  <img src="https://raw.githubusercontent.com/DomynAI/domyn-agents/main/docs/static/img/demo.gif" alt="Domyn Agents running in the terminal" width="640">
</div>

## Installation

Domyn Agents is published on PyPI as part of `domyn` (the GitHub repository is `domyn-agents`).

For the terminal agent, install the `domyn` command. On macOS (Apple Silicon) and Linux, the installer brings its own Python:

```sh
curl -fsSL https://github.com/domynai/domyn-agents/releases/latest/download/install.sh | sh
```

On Windows (x64 and ARM64), in PowerShell; domyn runs commands in Git Bash, so it also needs [Git for Windows](https://git-scm.com/download/win):

```powershell
irm https://github.com/domynai/domyn-agents/releases/latest/download/install.ps1 | iex
```

or install it with [uv](https://docs.astral.sh/uv/), on Python 3.12 or later:

```sh
uv tool install "domyn[cli]"
```

To install the development version from the repository instead, use `uv tool install "domyn[cli] @ git+https://github.com/domynai/domyn-agents"`.

To build agents in a Python project (Python 3.12 or later), add it as a dependency:

```sh
uv add domyn
```

With pip, run `pip install "domyn[cli]"`. Agents import from `domyn.agents` (`from domyn.agents import Agent, Runner`). Optional extras add integrations: `tracing` (OpenTelemetry), `langchain`, `langgraph`, `slack`, `telegram`, `kafka` (the Kafka channel of `domyn serve`) and `audio` (local speech to text).

## Getting started

Start it in the directory you want to work on:

```sh
domyn run
```

The first time, a setup wizard asks for a provider, a model and an API key, and saves them under `~/.domyn/`. Then you chat with the agent. It can read the files in this directory freely, and it asks for your approval before it writes a file or runs a command: once, for the rest of the conversation, in this project, or always.

Conversations are saved, and `domyn run --resume` picks one up where you left it. Type `/help` in a session to see its commands. See [Interactive sessions](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/cli/sessions.md).

Besides the CLI, Domyn Agents is a full framework. You can build your own agents in Python or YAML, with your own tools, sub-agents and approval rules, and run them with `domyn run` or embed them in your application. Refer to the [documentation](https://domynai.github.io/domyn-agents/) or the [examples](https://github.com/DomynAI/domyn-agents/blob/main/examples/README.md).

## Features

- **[Any model](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/guides/llm-providers.md)**: vLLM, OpenAI, Anthropic, Cerebras, OpenRouter or any OpenAI-compatible endpoint, with native tool calling or a prompt-based protocol for endpoints without it.
- **[Tools](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/guides/tools.md)**: Python functions, streaming tools, remote MCP servers, and built-in file and shell tools confined to a workspace.
- **[Containerized backend](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/cli/tools-and-approvals.md#running-the-tools-in-a-docker-container)**: run commands, file tools and the browser are containerized by default, while the orchestration loop remains outside.
- **[Multi-agent](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/guides/orchestration.md)**: agents hand work to each other, with control over what each one sees and whom it can call. [Remote agents](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/guides/remote-agents.md) take part like local ones.
- **[Human in the loop](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/guides/approvals.md)**: a tool can wait for approval, remembered for one call, a conversation or longer, and rules or hooks can decide some calls on their own.
- **[Skills](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/guides/skills.md)**: teach agents reusable know-how with `SKILL.md` files, loaded only when a task needs them.
- **[Standing instructions](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/guides/standing-instructions.md)**: `SOUL.md` and `AGENTS.md` files that shape every conversation.
- **[Long conversations](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/guides/context-compaction.md)**: the conversation is compacted before it outgrows the model's context window.
- **[Hooks](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/guides/hooks.md)**: run your code before and after agents and tools, to log, validate or change what they do.
- **[Persistent memory](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/guides/conversations-and-memory.md)**: agents remember facts across conversations, in a markdown file you can edit.
- **[Vision](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/cli/tools-and-approvals.md)**: with a model that supports vision, the agent can read images from the workspace or attached to a message.
- **[Decision models](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/guides/decision-models.md)**: a small model answers typed questions with probabilities, for example to pick skills or judge approvals. Off unless configured.
- **[A full framework](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/guides/tools.md)**: a Python library you can import into your own application. Agents, tools and hooks are classes you can subclass and extend.

## Documentation

The [documentation](https://domynai.github.io/domyn-agents/) has guides for the terminal agent and for building agents, and a reference for the [CLI](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/reference/cli.md), the [YAML schema](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/reference/yaml-schema.md) and the [event types](https://github.com/DomynAI/domyn-agents/blob/main/docs/docs/reference/events.md).

## Contributing

Contributions are welcome. Search the issues first; anything beyond a small fix starts from an issue a maintainer has accepted. [CONTRIBUTING.md](https://github.com/DomynAI/domyn-agents/blob/main/CONTRIBUTING.md) explains how to propose a change, set up the environment, run the tests and the checks, and build the documentation site. If you work with a coding agent, have it follow [AGENTS.md](https://github.com/DomynAI/domyn-agents/blob/main/AGENTS.md). Everyone taking part is expected to follow the [code of conduct](https://github.com/DomynAI/domyn-agents/blob/main/CODE_OF_CONDUCT.md).

To report a security vulnerability, see [SECURITY.md](https://github.com/DomynAI/domyn-agents/blob/main/SECURITY.md) rather than opening an issue.

## License

Domyn Agents is released under the [Apache License 2.0](https://github.com/DomynAI/domyn-agents/blob/main/LICENSE).
