Skip to content

Use more than one config dir

Claude Code keeps its settings, sessions, and plugins in a config dir: ~/.claude by default, or the dir in CLAUDE_CONFIG_DIR. If you use more than one, for example one for work and one for personal projects, the hub can show the tools for each dir.

Press Ctrl+Alt+W to open the config-dir palette. It lists the dirs you added, and the active dir has an active label.

When the palette opens, the dir you used before the active one is selected. So Ctrl+Alt+W then Enter switches back to it.

To make Ctrl+Alt+W switch to the previous dir at once, with no palette, open the hub settings with Ctrl+, and set Ctrl+Alt+W does to Swap to last dir. Each press goes back to the dir you used before, so with two dirs the key toggles between them. When there is no previous dir, the key opens the palette. To add or remove a dir in this mode, click Manage… in the hub settings.

Key Action
↑/↓ or Tab Move the selection
Enter Switch to the selected dir
Ctrl+D Remove the selected dir from the list
Esc or Ctrl+Alt+W Close the palette

When you switch, every tool reloads with the data of the new dir. The window title shows the name of the active dir, for example .claude-work. For the default dir, it shows Claude Code Hub.

Type a path in the palette, for example ~/.claude-work. An Add config dir row appears. Pick it, and the hub checks the folder, adds it to the list, and switches to it.

Select a dir and press Ctrl+D, or click × on its row. This removes the dir from the hub’s list only. Nothing on disk changes. You cannot remove the active dir.

Each tool reads its config dir once, when it starts. So the hub starts a separate set of the four tools for each dir.

When you switch away from a dir, the hub keeps its set running, so switching back is instant. Instant switch-back in the hub settings sets how many sets stay alive, 3 by default; --pool-size overrides it for one run. When a new set would go over that number, the hub stops the set you used least recently. It does not stop a set whose Kanban has an open terminal.

The first switch to a dir takes a few seconds, while its tools start.

When the hub starts, it adds one dir to the list if it is not there already: the dir in CLAUDE_CONFIG_DIR, else ~/.claude.

Kanban’s plugin is installed in one config dir. A dir without it shows tasks and sessions, but no live agent activity. To install it for a dir, run:

Terminal window
claude-code-hub --install --dir ~/.claude-work

The list, the active dir and the previous dir are in ~/.claude-hub/config.json. See CLI and configuration.