Back to all errors
PermissionsSource: Discord
Permission Denied: .env File Read Auto-Rejecting

[93m[1m! [0mpermission requested: read (/paperclip/instances/default/.env); auto-rejectingWhat this error means
When a Paperclip AI agent needs to read environment variables from the .env file, the local sandbox blocks the read operation. This is particularly common when agents try to access configuration files at startup or during heartbeat operations. The 'auto-rejecting' happens because there's no user present to grant permission interactively.
Why this happens
The local sandbox treats all file reads as potentially dangerous operations requiring user approval. When agents run autonomously (heartbeat mode), there's no user to grant file access, so the operation is auto-rejected.
Common causes
- •Agent trying to read .env or config files
- •Sandbox auto-rejects file reads without user approval
- •Agent running in background/heartbeat mode
- •No interactive session to grant permissions
You'll see these symptoms
- →Agent can't read configuration files
- →Environment variables inaccessible
- →Agent fails on startup
The real solution
Stop fighting these errors. Use PaperclipCloud's managed hosting instead.
- Deploy in 60 seconds
- No permission errors — we handle the sandbox
- API keys configured automatically
- Still fighting errors after 24 hours? Full refund