Installation
Flux0 is ready to run in just a few steps. Whether you prefer installing via PyPI or running in Docker, weβve got you covered.
Choose your preferred setup method:
π¦ Option 1: Install via PyPIβ
Perfect if you want to develop and run Flux0 directly on your machine.
1. Prerequisitesβ
- Python 3.13+
2. Installation Stepsβ
mkdir ~/tmp/myflux0 && cd ~/tmp/myflux0
python3 -m venv .venv
source .venv/bin/activate
# install the SDK via github and the flux0 framework
pip install git+https://github.com/flux0-ai/flux0-client-python
pip install flux0_ai
π Launch the Serverβ
flux0-server
tip
To change the port, set the FLUX0_PORT
environment variable.
- π Open in browser: http://localhost:8080
- π Explore the API: http://localhost:8080/docs
Ready to build your first agent?
π³ Option 2: Run via Docker (Containerized)β
Ideal for isolated or containerized environments.
π§± 1. Create a Dockerfile
β
FROM flux0ai/flux0:beta AS base
# Install the additional Python packages
RUN pip install langchain "langchain[openai]"
# Copy your agent code into the container
COPY ./modules /app/modules
For now lets create an empty directory for your future agent code
mkdir modules
π οΈ 2. Build the Docker Imageβ
docker build -t my-flux0-agent .
π 3. Run the Serverβ
docker run \
-p 8080:8080 \
my-flux0-agent
- π Server: http://localhost:8080
- π API Docs: http://localhost:8080/docs
Ready to build your first agent in docker?
β Whatβs Next?β
You're up and running β now it's time to put Flux0 to work!
- π§ Create your first agent: Learn how to define your first AI agent and bring it to life.
- π§ͺ Examples: Browse ready-made agent examples built with different frameworks.