Implementation Notes
This setup is the fastest path to an action-enabled command menu. You connect one assistant object, expose safe actions, and let users approve sensitive runs before execution.
Best For
- - Internal tools where users need AI to execute workflows
- - Teams that want approval prompts before destructive actions
- - Products that need both command search and AI chat in one surface
Quick Setup Checklist
- 1. Install better-cmdk and modifywithai using the package manager already used in your repo.
- 2. Create and configure the modifywithai token endpoint for your app.
- 3. Define action contracts with clear names, required options, and deterministic execute handlers.
- 4. Pass the assistant object to CommandMenu and verify command mode and chat mode both work.