Skip to content

Config options#1543

Merged
paul-nechifor merged 35 commits intodevfrom
config-options
Apr 9, 2026
Merged

Config options#1543
paul-nechifor merged 35 commits intodevfrom
config-options

Conversation

@Dreamsorcerer
Copy link
Copy Markdown
Collaborator

Problem

Users need to be able to pass configuration options for blueprints. This adds basic support for CLI arguments, envvars and config files.

Closes #1082.

Solution

Typer is not compatible with this kind of dynamic configuration, therefore we basically tell it to give us arbitrary strings via -o and then do all the processing ourselves, along with providing our own help output.

How to Test

Should be able to add --help to dimos run to see blueprint options and then configure them with -o, env vars and JSON config files. For example:
RERUNBRIDGEMODULE__MEMORY_LIMIT="50%" dimos --simulation run unitree-go2 -o voxelgridmapper.voxel_size=1 --config=foo.json

@Dreamsorcerer Dreamsorcerer changed the base branch from main to dev March 13, 2026 11:38
@leshy
Copy link
Copy Markdown
Contributor

leshy commented Mar 19, 2026

let's document actual external cli use now, need something to share with devs/users.. cli.md?

like wasn't obvious I can now do a:

dimos run unitree-go2 -o g.unitree_connection_type=replay

also can we get an optional printout of values in the config tree when running dimos? I'd enable this by default also

@Dreamsorcerer
Copy link
Copy Markdown
Collaborator Author

let's document actual external cli use now, need something to share with devs/users.. cli.md?

like wasn't obvious I can now do a:

dimos run unitree-go2 -o g.unitree_connection_type=replay

I missed the usage/cli.md file, so have updated there. I'd note that while we can use g. in the -o format, the existing code already has global config arguments hacked into typer, so I'll leave the documented approach for globals to use that existing option.

also can we get an optional printout of values in the config tree when running dimos? I'd enable this by default also

I'm not clear exactly what you mean here, can you provide an example? Should probably be pushed to a separate PR though.

@Dreamsorcerer Dreamsorcerer mentioned this pull request Apr 1, 2026
@paul-nechifor paul-nechifor merged commit f39d615 into dev Apr 9, 2026
3 of 5 checks passed
@paul-nechifor paul-nechifor deleted the config-options branch April 9, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config System

3 participants