Python CLI: rename a local auth profile without recreating its credentials
The Python CLI currently supports listing, switching and deleting local auth profiles, but no rename command. Renaming a profile currently requires editing credential-bearing TOML or recreating its configuration. Would a small omi config profile rename OLD NEW command be useful as a US$10 PayPal bounty under the contributor program, @josancamon19?
I have prepared a candidate that preserves the existing profile object and its settings, updates the active-profile selector when needed, and rejects an existing destination or blank new name before mutation. It leaves remote account identity unchanged. The candidate command uses the existing config save path and returns only profile names and the active selector in JSON mode. Documentation notes that scripts using the old --profile/OMI_PROFILE name need updating.
Validation so far: 7 focused dataclass contract tests pass for credential/settings preservation, active and inactive renames, collision rejection, missing source, blank destination, identical-name no-op and Unicode names. The tests execute the Config and Profile class definitions extracted from the source; they do not exercise the installed CLI, TOML persistence, Windows permissions or the full application. The original source cannot run these scenarios because rename_profile does not exist. Typer command wiring is prepared but untested. Full CLI tests, lint/typecheck and repository preflight remain required before a PR.
This is a feature proposal, not a report of a deployed security vulnerability or an existing bounty claim. Please confirm usefulness, intended behavior and the proposed reward before integration. No reward or assignment is assumed, and payment details would be shared privately only after an approved contribution.
I have read the issue and understand the problem. The CLI is missing a rename subcommand, so users must hand-edit the credential-bearing TOML or recreate the profile entirely. My plan is to add an omi config profile rename OLD NEW command that reads the existing profile object, writes it under the new key, removes the old key, and updates the active-profile selector when the renamed profile is currently active, with guards against blank or already-existing destination names. I can have a PR ready within 24 hours and am starting now.
/claim #13333
Thanks for putting this together. We aren't doing bounties at the moment, so we're closing the bounty proposal issues for now — thanks for the fix! 🙏