This guide provides setup instructions for the pipe project, with options for Docker Compose (recommended) and manual installation.
Use Docker Compose for a quick and isolated setup.
- Docker (version 20.10 or higher)
- Docker Compose (version 2.0 or higher)
-
Clone the repository:
git clone https://github.com/s-age/pipe.git cd pipe -
Set up environment variables:
- Copy the default environment file:
cp .env.default .env
- Edit
.envand add your API keys:- For Gemini API:
GOOGLE_API_KEY='YOUR_API_KEY_HERE' - For other services, add as needed.
- For Gemini API:
- Copy the default environment file:
-
Run the application:
docker-compose up --build
-
Access the services:
- Web UI (Flask): http://localhost:5000
- React Dev Server: http://localhost:3000
- Storybook: http://localhost:6006
For detailed development workflows and running individual services, see docs/development.md.
The Docker Compose setup includes the following services:
- web: Flask web application with backend API
- react: React development server with Vite
- mcp: Model Context Protocol server
- lsp: Language Server Protocol server for Python
- storybook: Storybook for UI component development
To run in development mode with hot reloading:
docker-compose upTo rebuild after changes:
docker-compose up --buildFor development or when Docker is not available, set up manually using Poetry.
- Python 3.12 or higher
- Poetry installed (
pip install poetryor use the official installer) - Node.js 24 (for frontend development)
gemini-cliis optional; the system can use Gemini API directly for most features.
-
Clone the repository:
git clone https://github.com/s-age/pipe.git cd pipe -
Install Python dependencies:
poetry install
-
Install Node.js dependencies (for frontend):
cd src/web npm install cd ../..
-
Set up API Key: Create a
.envfile (you can copy.env.default).- For Gemini API mode: Add
GOOGLE_API_KEY='YOUR_API_KEY_HERE'in your.envfile. - For
gemini-climode: SetGOOGLE_API_KEYin your environment (e.g.,export GOOGLE_API_KEY='YOUR_API_KEY_HERE'). - The system supports extensible backends; configure other agents (e.g., Claude, OpenAI) via
setting.ymland their respective API keys.
- For Gemini API mode: Add
-
Run the application: See docs/development.md for detailed commands to run individual services.
- Environment variables are defined in
.env - Application settings can be modified in
setting.yml - Docker-specific configs are in
docker-compose.yml
- Ensure Docker and Docker Compose are installed and running (for Docker setup)
- Check that ports 5000, 3000, 6006 are available
- Verify API keys are correctly set in
.env - For manual setup, ensure Python and Node.js versions match requirements
For more detailed information, see the main README.md.