You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be an issues with reading env files. i've written the config file to allow however there still is a block from allowing the agent into the file. any suggestions?
OpenCode version
1.0.152
Steps to reproduce
opencode
/session
any
"analyze our env files for any inconsistencies"
The user has blocked you from reading /home/devo/projects/aiq/v2/platform/.env, DO NOT make further attempts to read it
any updates? Still would be nice for sandboxed projects for our agents to be able to read the .env's. Still no joy with configs on the later updates. Thanks.
Activity
github-actions commentedon Dec 13, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Dec 13, 2025
yeah rn it’s blocked ill make it configurable tho
as a work around you can enter shell mode (type ! into prompt)
and then do:
cat .env
PilotDevo commentedon Dec 23, 2025
any updates? Still would be nice for sandboxed projects for our agents to be able to read the .env's. Still no joy with configs on the later updates. Thanks.
rekram1-node commentedon Dec 23, 2025
waiting for the permission updates to ship, Dax has a branch he has been working on should land in next day or so
PilotDevo commentedon Dec 23, 2025
Thanks.
dhruvkej9 commentedon Dec 29, 2025
any updates??
dhruvkej9 commentedon Dec 29, 2025
This method does not works
PilotDevo commentedon Dec 29, 2025
It does but it only allows the agent to read it in that single prompt. It doesn't persist. So it's basically useless.
boxpositron commentedon Jan 12, 2026
I had a similar problem. I created a package https://github.com/boxpositron/envsitter and OpenCode plugin https://github.com/boxpositron/envsitter-guard that solves this exact problem. EnvSitter Provides privacy for .env files but gives agents enough information to perform and complete tasks.
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.