[FEATURE]: Full portable mode. #2987

Open
opened 2026-02-16 17:38:08 -05:00 by yindo · 0 comments
Owner

Originally created by @nitg16 on GitHub (Nov 20, 2025).

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Currently it is difficult to make opencode portable and use same config and sessions on multiple devices.

Env var OPENCODE_CONFIG_DIR allows relocating config directory.

But data directory located at ~/.local/share/opencode cannot be relocated.

Proposal: Add OPENCODE_DATA_DIR env var to override data directory.

This will allow us to go full portable mode by exporting both config and data directory to a single location.

Originally created by @nitg16 on GitHub (Nov 20, 2025). ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Currently it is difficult to make opencode portable and use same config and sessions on multiple devices. Env var `OPENCODE_CONFIG_DIR` allows relocating config directory. But data directory located at `~/.local/share/opencode` cannot be relocated. Proposal: Add `OPENCODE_DATA_DIR` env var to override data directory. This will allow us to go full portable mode by exporting both config and data directory to a single location.
yindo added the discussion label 2026-02-16 17:38:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2987