r/LocalLLM • u/carlotes-247 • 3h ago
Question Ensuring that local llms with opencode only install in specific conda environment
I started using opencode with qwen3.5 via ollama and I wanted to know how to ensure:
(1) That if python packages are to be installed, to only do so in a specific conda environment and never in the base conda or base pip environments.
(2) to ask for permissions when installing packages or to control this somehow so openconde does not go wild installing stuff
Do you have any pointers or recommendations for how to learn to configure this? I am relatively new to all of these agentic environments and I want to keep things local and private.
2
Upvotes
1
u/jirka642 2h ago
You could try adding this as instructions in a global AGENTS.md file. It's in
~/.config/opencode/AGENTS.mdon Linux.For example, mine looks like this:
This is hard, because there is hundreds of ways AI can write the install command, so custom "permissions" config will never catch all of them. If you don't want anything to get past you, you will have to configure the "shell" tool to ask for every command.
I would recommend using sandbox instead.
1
u/acidfukker 1h ago
i use anaconda / miniconda, sandboxed venv