- Python 3.11+
- PostgreSQL 15+
- Redis 7+
- AWS Account with Bedrock access
- Docker and Docker Compose (optional, for containerized development)
-
Clone the repository
git clone https://github.com/AgentaFlow/fluxai.git cd fluxai -
Configure environment
cp .env.example .env # Edit .env and add your AWS credentials -
Start services
docker-compose up -d
-
Access the API
- API: http://localhost:8080
- Docs: http://localhost:8080/docs
- Prometheus: http://localhost:9090
- Grafana: http://localhost:3000 (admin/admin)
-
Clone the repository
git clone https://github.com/AgentaFlow/fluxai.git cd fluxai -
Create virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Configure environment
cp .env.example .env # Edit .env and configure: # - AWS credentials # - Database URL # - Redis URL
-
Start PostgreSQL and Redis
# Using Docker: docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=dev_password -e POSTGRES_DB=fluxai postgres:15 docker run -d -p 6379:6379 redis:7-alpine -
Run the application
python -m app.main # Or with uvicorn directly: uvicorn app.main:app --reload --host 0.0.0.0 --port 8080 -
Access the API
- API: http://localhost:8080
- Interactive docs: http://localhost:8080/docs
- Health check: http://localhost:8080/health
curl http://localhost:8080/healthcurl -X POST http://localhost:8080/v1/bedrock/invoke \
-H "Content-Type: application/json" \
-H "X-API-Key: your-api-key" \
-d '{
"model": "auto",
"messages": [
{
"role": "user",
"content": "Explain quantum computing in simple terms"
}
],
"max_tokens": 500,
"temperature": 0.7
}'curl http://localhost:8080/metricsfluxai/
├── app/
│ ├── __init__.py
│ ├── main.py # Application entry point
│ ├── api/ # API routes
│ │ ├── v1/
│ │ │ ├── endpoints/
│ │ │ │ ├── bedrock.py
│ │ │ │ ├── analytics.py
│ │ │ │ ├── models.py
│ │ │ │ └── cache.py
│ │ └── dependencies.py
│ ├── core/ # Core configuration
│ │ ├── config.py
│ │ └── logging.py
│ ├── db/ # Database
│ │ ├── models.py
│ │ └── session.py
│ ├── models/ # Pydantic schemas
│ │ └── schemas.py
│ └── services/ # Business logic
│ ├── bedrock_client.py
│ ├── cost_calculator.py
│ ├── cache.py
│ ├── metrics.py
│ └── analytics.py
├── requirements.txt
├── docker-compose.yml
├── Dockerfile
├── .env.example
└── README.md
pytestblack app/
ruff check app/mypy app/- Set up AWS credentials in
.env - Review the Technical Specification for architecture details
- Check the Implementation Guide for feature roadmap
- Start building MVP features from the project plan
- Documentation: See markdown files in the project root
- API Docs: http://localhost:8080/docs (when running)
- Issues: GitHub Issues
See LICENSE file for details.