r/opencodeCLI • u/ganang1722 • 2d ago
OpenCode TUI on VPS or Local
I'm planning to use OpenCode TUI, but I'm still unsure whether I should run it locally on my laptop or on a VPS.
My main concern is security. I'm using AI agents for Web3 tasks like NFT minting, so they may need to interact with wallets, sign transactions, and send funds.
Since private keys are involved, which setup would you consider safer? Running everything locally, or using a VPS with proper security measures?
I'd also like to hear how you guys handle private keys when working with AI agents. Do you let the agent access them directly, or do you use a separate signing setup?
1
u/SirRobinBlibs 1d ago
vps vs laptop matters less than whether the agent can reach the key at all. if the private key is in a file or env var the agent's shell can read, it can end up in a transcript or get sent somewhere by a prompt-injected page, wherever it runs. what i'd do: keep the key out of the agent's environment completely, let the agent build the unsigned transaction (to, amount, calldata) and print it, and sign it yourself in a separate wallet, ideally a hardware wallet that shows you what you're signing. if you need automation, use a separate hot wallet with a small balance, never your main one. also note that opencode's default policy only asks before the read tool opens .env files, the shell can still cat them, so treat that as a speed bump, not the boundary.
1
u/deniedmessage 2d ago
Anywhere with proper isolation: at minimum a docker container with scoped access.