Security & Permissions
Security and Permissions Overview
User-facing security model for isolation, Chat Access, and secret protection
Security and Permissions Overview
Downcity security has three layers:
- Agent isolation: one running agent is bound to one
projectRoot. - Chat Access: per-Agent grants decide which external Chat users can send messages into the Agent.
- Data protection: model provider
apiKeyis encrypted in~/.downcity/downcity.db.
What to watch first
- Avoid stale
DC_CITY_HOST/DC_CITY_PORTin your shell, or requests may hit the wrong agent. - New users cannot enter an Agent by default, so review pending Access Requests after enabling a channel.
- In production, prefer
DC_MODEL_DB_KEYfrom secret management.