Run multiple independent Hexis instances, each with its own database, identity, memories, and configuration.
# Create instances
hexis instance create alice --description "Alice's assistant"
hexis instance create bob --description "Bob's assistant"
# Switch between them
hexis instance use alice
hexis chat # conversations go to Alice's brain
hexis instance use bob
hexis chat # conversations go to Bob's brain- Multiple agents with distinct personalities and purposes
- Isolated development/testing environments
- Per-user brain separation with strong isolation
# Create
hexis instance create <name> --description "..."
# List
hexis instance list
hexis instance list --json
# Switch active instance
hexis instance use <name>
# Show current
hexis instance current
# Clone (copies all data)
hexis instance clone alice bob --description "Bob's assistant"
# Import existing database
hexis instance import legacy --database hexis_old_db
# Delete (requires confirmation)
hexis instance delete <name>
hexis instance delete <name> --force
# Target specific instance for any command
hexis --instance alice status
hexis -i alice init
hexis -i alice chatConfiguration is stored in ~/.hexis/instances.json. Each instance tracks:
- Database connection details (host, port, database name, user)
- Password environment variable name (not the value itself)
- Description and creation timestamp
Set HEXIS_INSTANCE to target a specific instance:
export HEXIS_INSTANCE=alice
hexis status # uses alice instance
hexis-worker --mode heartbeat # runs heartbeat for aliceRun separate workers per instance using Docker Compose overrides:
# docker-compose.override.yml
services:
worker_alice:
extends:
service: heartbeat_worker
environment:
HEXIS_INSTANCE: alice
worker_bob:
extends:
service: heartbeat_worker
environment:
HEXIS_INSTANCE: bobOn first use of any instance command, Hexis auto-imports your existing hexis_memory database as the "default" instance. Existing single-instance setups continue to work without changes.
- Installation -- initial setup
- Docker Compose -- profiles and overrides