Get an API Key
Check Prerequisites
Choose Your Database Backend
Install CyborgDB Service
Configure Environment Variables
.env
file is the most convenient method as it persists your configuration and keeps sensitive data out of your shell history.Start the Service
http://localhost:8000
)cyborgdb-service --help
to see all available command-line arguments and connection string examples.Verify Installation
Advanced Configuration
Variable | Description | Required | Example |
---|---|---|---|
CYBORGDB_API_KEY | Your CyborgDB API key | ✅ | cyborg_abc123... |
CYBORGDB_DB_TYPE | Database backend type | ✅ | postgres or redis |
CYBORGDB_CONNECTION_STRING | Database connection details | ✅ | See connection formats |
CYBORGDB_VERSION | Service version (optional) | ❌ | 0.11.1 |
PORT | Service port | ❌ | 8000 |
SSL_CERT_PATH | Path to SSL certificate file | ❌ | /etc/ssl/certs/server.crt |
SSL_KEY_PATH | Path to SSL private key file | ❌ | /etc/ssl/private/server.key |
Next Steps
Comparison with Docker Service
Aspect | Python Service | Docker Service |
---|---|---|
Installation | pip install | docker run |
Dependencies | Managed by pip/conda | Bundled in container |
Resource Usage | Lower overhead | Higher overhead |
Environment Isolation | Python virtualenv | Container isolation |
Deployment Complexity | Simple Python deployment | Container orchestration |
Configuration | Environment variables/files | Environment variables |
Best For | Development, Python-heavy workflows | Production, cloud deployment |