Self hosting #1037
Replies: 2 comments
|
Composio (@composio-dev) I'm also curious what's your take on that :) And awesome project! |
|
Self-hosting Composio is increasingly viable as the project has added Docker and Kubernetes support. Here's the practical setup: Docker Compose (quickest start): # docker-compose.yml
version: "3.8"
services:
composio-api:
image: composio/composio-api:latest
ports:
- "9900:9900"
environment:
- DATABASE_URL=postgres://user:pass@db:5432/composio
- REDIS_URL=redis://redis:6379
- SECRET_KEY=${SECRET_KEY}
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
depends_on:
- db
- redis
db:
image: postgres:15
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=composio
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
volumes:
postgres_data:Key self-hosting considerations:
Alternative: hybrid approach: import composio_openai
from openai import OpenAI
# Still connects to Composio.dev for auth, but you control the agent
client = OpenAI()
composio_client = Composio(api_key=os.environ["COMPOSIO_API_KEY"])
# Custom entity_id for your self-hosted user management
tools = composio_client.get_tools(entity_id="your-user-id", apps=["github", "slack"])What's your primary motivation for self-hosting — compliance, cost, or customization? |
Uh oh!
There was an error while loading. Please reload this page.
hi team , is it possible to host composio in local server?
All reactions