Skip to main content

Fluxyr

A Python framework for agents that expand their own capabilities and repair their skills through a self-healing workflow. Describe what you need in the chat: Fluxyr can research an integration, generate Python actions, test them and save them as reusable skills.

Create an application with a Flask-style API; Fluxyr handles tools, memory, conversations, streaming, background executions and scheduled routines.

Fluxyr agent interface with chat, tools, skills and execution sequence

Install

pip install fluxyr

Requires Python 3.11+. The package includes the web UI; Node is only needed when contributing to the frontend.

Your first application

Create a .env file:

FLUXYR_MODEL=minimax/minimax-m3
OPENROUTER_API_KEY=your-key

Create app.py:

from fluxyr import Fluxyr

app = Fluxyr(__name__)

@app.tool()
def greet(name: str) -> dict:
    """Greet someone by name."""
    return {"message": f"Hello, {name}!"}

@app.get("/api/hello")
def hello():
    return greet("Fluxyr")

if __name__ == "__main__":
    app.run()

Run python app.py and open http://localhost:5050. The agent is ready for you to configure its skills, credentials and routines and start a conversation.

Build skills through conversation

Ask Fluxyr to create an integration in the chat, for example:

Create a weather skill for my provider's API, with a forecast action accepting a city. Ask me for the documentation URL and help me configure any credentials in Vault. Test it for São Paulo, then create a routine that retrieves the forecast every day at 08:00 in America/Sao_Paulo.

Fluxyr turns the request into skill instructions and a technical specification. A dedicated builder generates the Python actions and declares their dependencies and Vault credentials. The agent inspects the generated code, runs tests, checks the results and activates a tested version for future conversations and routines. You can follow the build and execution progress in the UI.

The same loop supports self-healing: when an action fails, the agent can inspect the execution, diagnose the problem, revise the specification and rebuild the affected action. It tests the replacement before activation and can improve the skill's instructions from what it learns. Each code change creates a new version, preserving the previous versions and execution history. Missing credentials or required user choices are handled through embedded dialogs.

Configuration

Fluxyr reads .env from the directory where you start the application. Environment variables take precedence. Only the model and its provider's API key are required.

Variable Default
FLUXYR_MODEL Required
OPENROUTER_API_KEY Required for the default provider
FLUXYR_PROVIDER openrouter; also supports openai, anthropic and custom
PORT 5050
FLUXYR_AGENT_NAME Default Agent
DATABASE_URL SQLite at .fluxyr/state/fluxyr.sqlite3; PostgreSQL is optional
FLUXYR_ROOT .fluxyr in the launch directory; override to mount one instance volume
FLUXYR_SKILLS_DIR Optional folder of Markdown skills

With another provider, supply its key: OPENAI_API_KEY, ANTHROPIC_API_KEY or CUSTOM_API_KEY. See the configuration reference for provider endpoints and other options.

All local instance storage lives under .fluxyr/. Set FLUXYR_ROOT to mount it as one volume. Existing installations use the explicit storage migration.

Skills and integrations

Point FLUXYR_SKILLS_DIR at a folder to load its .md files as agent instructions. Use @app.tool() to expose Python functions and standard Flask routes for your API. The agent can also build and test Python actions, manage credentials in Vault, request human input and schedule routines.

Development

git clone https://github.com/shpyrd-io/fluxyr.git
cd fluxyr
pip install -e '.[dev]'
pnpm --dir frontend install --frozen-lockfile
pnpm --dir frontend build
fluxyr --reload

See CONTRIBUTING.md for local development and test suites, and the release guide for versioning and publication.

Licensed under MPL 2.0. Third-party notices are in NOTICE.

Metadata

Release files for fluxyr 0.9.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fluxyr 0.9.9
File Size Uploaded
fluxyr-0.9.9.tar.gz 1.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for fluxyr 0.9.9
File Interpreter ABI Platform
fluxyr-0.9.9-py3-none-any.whl Python 3 none any Details

Total release size: 2.7 MB

Release files / fluxyr-0.9.9.tar.gz

Download URL fluxyr-0.9.9.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
c7e772595e1a431756d46bcabc517ea1352ff466a07f467b775e7bf201b2bf2f
BLAKE2b-256 checksum
How to use checksums
fcd7891e465ad5fe2bce1096b2c765f299426f00afb72d439a4aeaef27041168
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / fluxyr-0.9.9-py3-none-any.whl

Download URL fluxyr-0.9.9-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e26d8f46f56f658c43981ccbfae9393edccd0b114f1cfd597bdd82596a669352
BLAKE2b-256 checksum
How to use checksums
174323b2b6058870ed78666a8fdc4c1abae074f7152ce376de5ab8a8f800e048
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

0.9.12

2 release files

0.9.11

2 release files

0.9.10

2 release files

This release

0.9.9 This release

2 release files

0.9.8

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page