Feature request: cli tab completions for bash, fish, and zsh #1053

Open
opened 2026-02-16 17:29:18 -05:00 by yindo · 2 comments
Owner

Originally created by @gitmpr on GitHub (Aug 1, 2025).

Generating shell completion scripts by introspecting the Go code should be fairly straightforward, especially using popular libraries like Cobra. It would be great to have
source <(opencode completions $SHELL)
for easy shell integration. I’d be happy to help create a PR for this if core feature contributions weren’t restricted by the README guidelines.

Originally created by @gitmpr on GitHub (Aug 1, 2025). Generating shell completion scripts by introspecting the Go code should be fairly straightforward, especially using popular libraries like Cobra. It would be great to have ```source <(opencode completions $SHELL)``` for easy shell integration. I’d be happy to help create a PR for this if core feature contributions weren’t restricted by the README guidelines.
yindo added the help-wanted label 2026-02-16 17:29:18 -05:00
Author
Owner

@strk commented on GitHub (Nov 13, 2025):

Just a note: I didn't find this issue because I searched for "tab", given mine was the second duplicated issue maybe the title of this one could be updated to also mention "TAB" as I guess all cli completions are implemented that way (or at least most commonly) ?

@strk commented on GitHub (Nov 13, 2025): Just a note: I didn't find this issue because I searched for "tab", given mine was the second duplicated issue maybe the title of this one could be updated to also mention "TAB" as I guess all cli completions are implemented that way (or at least most commonly) ?
Author
Owner

@rekram1-node commented on GitHub (Nov 13, 2025):

Sure thing added it, glad the bot spotted the dup

@rekram1-node commented on GitHub (Nov 13, 2025): Sure thing added it, glad the bot spotted the dup
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1053