Vivarium is a FastAPI-based backend service that manages AI conversations and system prompts, designed to work with a modern React-based chat interface. It provides a robust API for handling conversational AI interactions using LiteLLM, supporting multiple LLM providers and models.
- FastAPI-powered REST API
- React-based chat interface
- Conversation management and persistence
- System prompt management
- Multi-provider LLM support via LiteLLM
- CORS support for cross-origin requests
- Modern dependency management with Rye
- Python 3.12 or higher
- Node.js (for chat UI)
- Rye for Python dependency management
-
Clone the repository:
git clone https://github.com/yourusername/vivarium.git cd vivarium
-
Install Python dependencies:
rye sync
-
Install chat UI dependencies:
cd chat-ui npm install
Create a .env
file in the project root with your configuration:
ANTHROPIC_API_KEY=your_api_key_here
-
Start the API server:
rye run api
The API will be available at http://localhost:9000
-
Start the chat UI (in a separate terminal):
cd chat-ui npm run dev
The UI will be available at http://localhost:3000
/api/conversations
- Manage conversations/api/system-prompts
- Manage system prompts
MIT. See LICENSE for more details.