Security & Permissions
Security and Permissions Overview
User-facing security model for isolation, chat authorization, and secret protection
Security and Permissions Overview
Downcity security has three layers:
- Agent isolation: one running agent is bound to one
projectRoot. - Chat authorization: user roles decide who can send messages into the agent.
- Data protection: model provider
apiKeyis encrypted in~/.downcity/downcity.db.
What to watch first
- Avoid stale
DC_SERVER_HOST/DC_SERVER_PORTin your shell, or requests may hit the wrong agent. - New users fall into the lowest authorization group by default, so review chat roles before rollout.
- In production, prefer
DC_MODEL_DB_KEYfrom secret management.