Skip to main content

Fagoon AI Agents Workflow

Reason this release was yanked:

Unstable Package

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

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

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fagoon_upgrade-2.0.5.tar.gz (8.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fagoon_upgrade-2.0.5-py3-none-any.whl (671.4 kB view details)

Uploaded Python 3

File details

Details for the file fagoon_upgrade-2.0.5.tar.gz.

File metadata

  • Download URL: fagoon_upgrade-2.0.5.tar.gz
  • Upload date:
  • Size: 8.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fagoon_upgrade-2.0.5.tar.gz
Algorithm Hash digest
SHA256 9cb766879d22cc0336cd6ba9fc505e72833f360816ece6f658af9be43af26272
MD5 28ec0fe33fd672e3b7a42ae4f4809149
BLAKE2b-256 fe0f0065c5b8e7f8437b8fdfd10f3c82e9ee75f308ba157cc151a3afaaf31369

See more details on using hashes here.

Provenance

The following attestation bundles were made for fagoon_upgrade-2.0.5.tar.gz:

Publisher: release.yml on Fagoon-AI/upgrade

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fagoon_upgrade-2.0.5-py3-none-any.whl.

File metadata

  • Download URL: fagoon_upgrade-2.0.5-py3-none-any.whl
  • Upload date:
  • Size: 671.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fagoon_upgrade-2.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5b4a2f758d4c89ad088f4b3dae1995e61d65b1627ba6156db368bf6ffed797d9
MD5 5d0cb35505c1ce99b8a42f300c8ace1e
BLAKE2b-256 8fbb27952a0a98ef54b60eafbae497c4741c7f3cf1d11780fd7de919b1f7d2d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for fagoon_upgrade-2.0.5-py3-none-any.whl:

Publisher: release.yml on Fagoon-AI/upgrade

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page