Security & Privacy
Space Black is designed with a "Local-First" philosophy. Your data, keys, and memories stay on your machine.
API Key Management
- Storage: API keys (Google, OpenAI, Anthropic, Telegram) are stored in the
.envfile in the project root. - Protection: The
.envfile is included in.gitignoreto prevent accidental commits to public repositories. - Configuration: Keys can be managed via the TUI (
/configand/skills) or by manually editing the.envfile.
Vault Security (Credential Storage)
Space Black provides a tiered secure Vault system for storing user passwords and tokens automatically.
- OS Native Storage (Default): Uses the secure keychain provided by your host operating system (e.g., macOS Keychain, Windows Credential Manager, Linux Secret Service).
- Local Encrypted Vault: An optional fallback file (
brain/vault/secrets.enc) encrypted using symmetric AES-128 (Fernet). To access this fallback vault, you must establish a secret passphrase viainitialize_local_vaultand unlock it per-session usingunlock_local_vault. At rest, without the passphrase, this file cannot be decrypted. The old plaintextsecrets.jsonsystem is completely deprecated and removed.
Telegram Gateway Security
The Telegram Bot skill is a public-facing interface. To secure it:
- Allowed User ID: The bot validates every incoming message against the
allowed_user_idconfigured inconfig.json. Messages from unauthorized users are rejected immediately. - No Public Access: The bot does not respond to group chats or unknown users by default.
File System Access
The agent has the ability to execute terminal commands.
- Risk: The agent runs with the same permissions as the user who started the script.
- Mitigation: Do not run the agent as
rootorAdministrator. - Guardrails: Critical system commands (like
rm -rf /) are ideally blocked by the agent's internal safety prompts, but user discretion is advised when authorizing command logic.
Memory Privacy
All conversation logs and user profiles are stored in plain text (Markdown) within the brain/ directory.
- Encryption: At rest, these files are not encrypted by Space Black. Rely on your operating system's disk encryption (e.g., FileVault, BitLocker).
- Sharing: The
brain/directory is ignored by Git to prevent uploading your personal conversation history.