Deployment

Production Mode

For persistent storage and authentication:

rebuno server \
  --production \
  --db-url "postgres://user:pass@localhost/rebuno" \
  --policy /path/to/your/policies \
  --bearer-token "your-secret-token"

Production mode requires --policy, --db-url, and --bearer-token. The kernel will refuse to start without them.

Authentication

Required in production mode

# Set the token
rebuno server --bearer-token "your-secret-token" ...

# Or via environment variable
export REBUNO_BEARER_TOKEN="your-secret-token"

All API requests must include the token:

curl -X POST http://localhost:8080/v0/executions \
  -H "Authorization: Bearer your-secret-token" \
  -H "Content-Type: application/json" \
  -d '{"agent_id": "researcher", "input": {"query": "hello"}}'

The Python SDK accepts it as api_key:

agent = MyAgent(
    agent_id="researcher",
    kernel_url="http://localhost:8080",
    api_key="your-secret-token",
)

Configuration Reference (rebuno server)

FlagEnvDefaultDescription
--portREBUNO_PORT8080Kernel HTTP server port
--bindREBUNO_BIND0.0.0.0Bind address
--db-urlREBUNO_DB_URLPostgreSQL connection string (required)
--db-max-connsREBUNO_DB_MAX_CONNS0Database connection pool max size (0 = pgxpool default)
--db-min-connsREBUNO_DB_MIN_CONNS0Database connection pool min size (0 = pgxpool default)
--policyREBUNO_POLICYPath to policy YAML file or directory
--productionREBUNO_PRODUCTIONfalseEnable production checks (requires policy + db + bearer token)
--tls-certREBUNO_TLS_CERTTLS certificate file path (optional)
--tls-keyREBUNO_TLS_KEYTLS key file path (optional)
--execution-timeoutREBUNO_EXECUTION_TIMEOUT1hMaximum wall-clock time for an execution
--step-timeoutREBUNO_STEP_TIMEOUT5mDefault deadline for a single tool step
--agent-timeoutREBUNO_AGENT_TIMEOUT30sAgent connectivity timeout
--log-levelREBUNO_LOG_LEVELinfoLog level (debug/info/warn/error)
--log-formatREBUNO_LOG_FORMATjsonLog format (json/text)
--otel-endpointREBUNO_OTEL_ENDPOINTOTLP gRPC endpoint for tracing
--otel-sample-rateREBUNO_OTEL_SAMPLE_RATE0.1Trace sampling rate
--retention-periodREBUNO_RETENTION_PERIOD168hRetention period for terminal executions
--cleanup-intervalREBUNO_CLEANUP_INTERVAL1hInterval between cleanup sweeps
--retry-base-delayREBUNO_RETRY_BASE_DELAY1sBase delay for step retries
--retry-max-delayREBUNO_RETRY_MAX_DELAY30sMaximum delay for step retries
--bearer-tokenREBUNO_BEARER_TOKENBearer token for API auth (optional in dev; required in production)
--cors-originsREBUNO_CORS_ORIGINSComma-separated CORS origins