# OpenCode power user tips

DevFeed: [OpenCode power user tips](<https://devfeed.tech/articles/opencode-power-user-tips-25302.md>)

Original publisher: [Read original article](<https://kau.sh/blog/opencode-power-user-tips/>)

Author: Kaushik Gopal

Published: 2026-06-03T16:00:00Z

Content type: tutorial

Language: en

Sources: [Kaushik Gopal's Site](<https://devfeed.tech/sources/kaushik-gopal-s-site.md>)

Topics: [Agent Harness](<https://devfeed.tech/topics/agent-harness.md>), [Tooling](<https://devfeed.tech/topics/tooling.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [agent-harness](<https://devfeed.tech/tags/agent-harness.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [codex](<https://devfeed.tech/tags/codex.md>), [commands](<https://devfeed.tech/tags/commands.md>), [fork](<https://devfeed.tech/tags/fork.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [model](<https://devfeed.tech/tags/model.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [opencode](<https://devfeed.tech/tags/opencode.md>), [switching](<https://devfeed.tech/tags/switching.md>), [tips](<https://devfeed.tech/tags/tips.md>)

## AI overview

A practical guide to advanced OpenCode features, including the leader key, session management, session forking, conversation rewind, and model switching.

## Source excerpt

In this post, I'd like to talk about some power user tips for OpenCode - an open source, model agnostic harness that more people should be using. Hopefully some of the advanced use cases convince you to give OpenCode (and OpenChamber) a shot. intermediate to advanced tips only I am specifically choosing to talk about some advanced tips in this post. If you've never used an agent harness or are looking to learn how to use OpenCode, this post can be useful but reader beware. Unleash the leader key ## While ⌃p (Ctrl + P) will list out all the possible commands (and is helpful), OpenCode has the concept of a "leader" key (which defaults to ⌃x). The leader key allows you to execute targeted useful commands more quickly and there's a slew of useful ones pre-defined1. ctrl-p shows all commands. notice leader key bound to some Manage multiple sessions - leader l ## People reach for whole terminals and extra tooling to juggle between agent sessions. I too had an overly customized tmux setup that looked like this: Before: agent session listing via tmux OpenCode simplifies this. Just hit leader + l and you view current sessions and can instantly switch to that session by just selecting it from the list. After: leader-l allows quick session switching The ability to quickly rename a session from this view is a godsend for me and what lets me be organized. session directory filtering you can pass a --dir . flag to opencode when launching it, which filters the session list to just this workspace/directory by default. You can alternatively not pass that flag, and the session list will show all sessions. Fork (or Branch) sessions /fork ## Forking takes the session you're in and spawns a new one. You branch off into a separate conversation while the main agent keeps grinding on whatever you left it doing. I love this feature and even cobbled my own version with tmux long before most harnesses shipped it. Claude Code, Codex and other harnesses have caught up and support this feature.