Fagoon AI Agents Workflow
Project description
Fagoon Upgrade
Self-hosted AI platform with workflow automation, agents, chat, and API generation.
Build AI workflows visually, publish them as REST APIs, deploy agents, and chat with LLMs — all running on your own machine.
Quick Start
Prerequisites
- Docker Desktop — Download here
- Python 3.11+ — Download here
- pipx (recommended) — Install with:
pip install pipx
Install & Run
# Install the CLI
pipx install fagoon-upgrade
# Start the platform
fagoon up
On first run, you'll see a setup wizard:
Welcome to Fagoon!
Let's set up your AI platform.
How would you like to power your AI?
1) I have an API key (OpenAI, Gemini, Groq, etc.)
2) Use local Ollama model (free, runs on your machine)
3) Skip for now (configure later in the UI)
Choose [1/2/3]:
Access the Platform
| Service | URL |
|---|---|
| Frontend | http://localhost:3000 |
| Backend | http://localhost:8000 |
Features
- Visual Workflow Builder - Drag-and-drop canvas with 20+ node types
- Workflow-as-API - Publish any workflow as a REST endpoint with API key auth
- AI Agents - Conversational agents with memory and tool use
- Chat Interface - Chat with any LLM provider through a unified UI
- Multi-Provider - OpenAI, Gemini, Groq, Anthropic, Ollama
- Self-Hosted - Your data stays on your machine
CLI Commands
fagoon up # Start the platform (lite mode)
fagoon up --full # Start with Redis + Celery (multi-worker)
fagoon up --ollama # Start with local Ollama LLM
fagoon down # Stop the platform
fagoon logs -f # Follow live logs
fagoon status # Check if running
fagoon update # Pull latest version and restart
fagoon config set KEY=VALUE # Set configuration
fagoon config show # Show current config
fagoon db set-url URL # Switch database
Workflow-as-API
Publish any workflow as a callable REST API:
curl -X POST http://localhost:8000/api/v1/workflow-api/your-slug/execute \
-H "X-API-Key: wfapi_your_key_here" \
-H "Content-Type: application/json" \
-d '{"input": "Hello from my app"}'
Response:
{
"success": true,
"execution_id": "uuid",
"status": "COMPLETED",
"output": {
"output_text": "AI generated response",
"model": "gemini-2.5-flash"
},
"usage": { "duration_ms": 2500 }
}
Deployment Modes
Lite Mode (Default)
Single-user, no Redis/Celery. Perfect for personal use.
fagoon up
Full Mode
Multi-worker with Redis + Celery. For production.
fagoon up --full
With Ollama (Local LLM)
Free, offline AI using local models.
fagoon up --ollama
Docker Compose (Direct)
services:
app:
image: ghcr.io/fagoon-ai/upgrade:2.0.4
ports:
- "8000:8000"
- "3000:3000"
environment:
LITE_MODE: "true"
DATABASE_URL: postgresql+asyncpg://fagoon:fagoon@db:5432/fagoon
depends_on:
db: { condition: service_healthy }
db:
image: pgvector/pgvector:pg16
environment:
POSTGRES_USER: fagoon
POSTGRES_PASSWORD: fagoon
POSTGRES_DB: fagoon
volumes:
- fagoon_db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U fagoon"]
interval: 5s
timeout: 5s
retries: 10
volumes:
fagoon_db:
Environment Variables
| Variable | Default | Description |
|---|---|---|
| LITE_MODE | true | true = single-process, false = Redis+Celery |
| DATABASE_URL | auto | PostgreSQL connection string |
| JWT_SECRET | auto | Secret for JWT tokens |
| GEMINI_API_KEY | — | Google Gemini API key |
| OPENAI_API_KEY | — | OpenAI API key |
| GROQ_API_KEY | — | Groq API key |
| OLLAMA_BASE_URL | — | Ollama server URL |
| WEB_CONCURRENCY | 1 | Number of workers |
Troubleshooting
"Cannot connect to Docker daemon" — Start Docker Desktop and wait for it to load.
"Port 3000/8000 already in use" — Stop other services on those ports.
Platform won't start:
fagoon logs -f # Check logs
fagoon down # Stop
fagoon up # Restart
Reset everything:
fagoon down
docker volume rm fagoon_db fagoon_data
fagoon up
Tech Stack
- Backend: Python, FastAPI, SQLAlchemy, PostgreSQL, pgvector
- Frontend: Next.js, React, TailwindCSS, React Flow
- Workflow Engine: Custom DAG executor with 20+ node types
- Task Queue: Celery + Redis (full mode)
- Container: Docker, Docker Compose
Links
- Website: fagoonai.com
- PyPI: pypi.org/project/fagoon-upgrade
- Docker:
docker pull ghcr.io/fagoon-ai/upgrade:2.0.4 - GitHub: github.com/Fagoon-AI/upgrade
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fagoon_upgrade-2.1.7.tar.gz.
File metadata
- Download URL: fagoon_upgrade-2.1.7.tar.gz
- Upload date:
- Size: 7.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66d041168d25b344603a9fc3da24c20524bd60d6e82f580104e09e5fbe756406
|
|
| MD5 |
21383868e934626f1d840f0850b001b3
|
|
| BLAKE2b-256 |
35bf75ddf6bb83f26cb3295a029f23001bc5a8eaf807194314bad149d50ba839
|
Provenance
The following attestation bundles were made for fagoon_upgrade-2.1.7.tar.gz:
Publisher:
release.yml on Fagoon-AI/upgrade
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fagoon_upgrade-2.1.7.tar.gz -
Subject digest:
66d041168d25b344603a9fc3da24c20524bd60d6e82f580104e09e5fbe756406 - Sigstore transparency entry: 1910115359
- Sigstore integration time:
-
Permalink:
Fagoon-AI/upgrade@38cd76ec6437f5cea7a8d4aad32f8b7376b0ebc8 -
Branch / Tag:
refs/tags/v2.1.7 - Owner: https://github.com/Fagoon-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@38cd76ec6437f5cea7a8d4aad32f8b7376b0ebc8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file fagoon_upgrade-2.1.7-py3-none-any.whl.
File metadata
- Download URL: fagoon_upgrade-2.1.7-py3-none-any.whl
- Upload date:
- Size: 675.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc7b90d85886b935d5b468bfce768f6bb05b48d06d96de94431d2aaf6e2dda50
|
|
| MD5 |
7c150b5949cad3eb413ada3461d3f073
|
|
| BLAKE2b-256 |
4e4d386fe180e54edb8bd37ce8e3d5bb1d44cacdfa8b7e2940d8e22ad81fb4f2
|
Provenance
The following attestation bundles were made for fagoon_upgrade-2.1.7-py3-none-any.whl:
Publisher:
release.yml on Fagoon-AI/upgrade
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fagoon_upgrade-2.1.7-py3-none-any.whl -
Subject digest:
fc7b90d85886b935d5b468bfce768f6bb05b48d06d96de94431d2aaf6e2dda50 - Sigstore transparency entry: 1910115456
- Sigstore integration time:
-
Permalink:
Fagoon-AI/upgrade@38cd76ec6437f5cea7a8d4aad32f8b7376b0ebc8 -
Branch / Tag:
refs/tags/v2.1.7 - Owner: https://github.com/Fagoon-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@38cd76ec6437f5cea7a8d4aad32f8b7376b0ebc8 -
Trigger Event:
push
-
Statement type: