picoclaw/cmd/picoclaw/internal
Keith d4bc28c113
feat(config): Add support for env var configuration (#896)
* feat(config): Add support for env var configuration

This commit introduces support for two environment variables,
allowing users to override the default paths for picoclaw's home
directory and configuration file.

- `PICOCLAW_CONFIG`: Directly specifies the path to the `config.json` file.
This is initialised first, takes precedence over the hardcoded path, and is ideal
for containerized deployments or custom config management.

- `PICOCLAW_HOME`: Overrides the root directory for all picoclaw data, (except the config)
(e.g., `~/.picoclaw`). This is useful for portable installations or placing
data in non-standard locations.

This change provides greater flexibility for running picoclaw in various environments without
being tied to the default home directory structure.

* `README.md` updated explain PICOCLAW_CONFIG and PICOCLAW_HOME

* docs: translate environment variables section to multiple languages

---------

Co-authored-by: picoclaw <picoclaw@sipeed.com>
2026-03-02 07:41:12 +11:00
..
agent refactor(bus): fix deadlock and concurrency issues in MessageBus 2026-02-23 00:44:45 +08:00
auth refactor(cli): migrate to Cobra-based command structure (#429) 2026-02-25 18:47:45 +11:00
cron refactor(cli): migrate to Cobra-based command structure (#429) 2026-02-25 18:47:45 +11:00
gateway fix(exec) fail close on invalid deny pattern (#781) 2026-02-28 16:24:26 +08:00
migrate Feat/update migrate (#910) 2026-02-28 19:59:17 +08:00
onboard fix(onboard): use AGENTS.md template instead of AGENT.md (#931) 2026-03-01 16:25:31 +11:00
skills fix(skills): use registry-backed search for skills discovery (#929) 2026-03-01 15:20:20 +11:00
status refactor(cli): migrate to Cobra-based command structure (#429) 2026-02-25 18:47:45 +11:00
version refactor(cli): migrate to Cobra-based command structure (#429) 2026-02-25 18:47:45 +11:00
helpers.go feat(config): Add support for env var configuration (#896) 2026-03-02 07:41:12 +11:00
helpers_test.go feat(config): Add support for env var configuration (#896) 2026-03-02 07:41:12 +11:00