Use the terminal
Resume a terminal AI agent Session with fungi resume, or start fresh with Shiitake. Keep local conversations and tools in your project folder.
To resume a terminal AI agent Session, run fungi resume in the same project
folder and choose your saved conversation. To start fresh,
install Shiitake and run fungi in your project folder. Shed
is different: it opens a shell on a Team Computer in your browser.
First run and models
Run fungi. Setup asks which model to use. Choose your ChatGPT subscription and
sign in in the browser, or use a provider key. You can skip setup choices and
configure a model afterwards.
fungi
To use Fungi hosted models instead, run fungi login --provider fungi and
choose the Team that pays:
fungi login --provider fungi
fungi login --provider fungi opens Fungi browser sign-in and approval. Choose
the Team that pays for model use. A single current Team is selected
automatically. You need to belong to a funded Team. Inside the conversation, use
/model to choose Fungi and a hosted model such as Luna. Login alone
does not change the Session’s selected model.
In an interactive terminal, fungi login asks you to choose a subscription,
Fungi or an API key. Without an interactive terminal, it defaults to Fungi.
Choose a provider explicitly with fungi login --provider <id> or use /login
inside the conversation. Use /thinking for the selected model’s supported
levels. Use agent model clears a Session’s override. Model default
leaves the thinking level to the provider. Changing a preference does not
restart the conversation or prove that the next request will succeed.
Fungi models run through the selected Team and use its hosted billing. Your own provider key or subscription is billed by that provider. Local conversation storage and tools are on your machine; prompts and context go to the chosen model provider. See What Fungi keeps. Hosted Computer operations have their own permissions and funding. Never paste keys into an Agent prompt.
If Fungi asks you to sign in again, repeat the Fungi login. If it asks for credits, fund the named Team. An unreachable or paused service requires a retry when available. A failed Fungi request does not switch to your other providers.
Give work and find it again
Type a task and press Enter. During a run, Enter sends steering and Tab queues a follow-up. Shift+Enter or Alt+Enter inserts a newline. An accepted prompt is saved work, not a completed result. Read the final reply and check the files.
Closing the terminal leaves the shared local service running and keeps saved Sessions. Return from the same project folder:
Illustrative: these commands need a project with saved local Sessions. Replace
1 with the number from your own list.
fungi sessions list
fungi sessions resume 1
fungi resume opens the saved-Session picker. fungi resume --last opens the
latest. Use -C /path/to/project to select another project. A full Session ID
or a unique ID prefix can replace the list number.
fungi sessions status --json reads the latest Session’s state.
fungi sessions show --last prints bounded history.
fungi sessions watch --last follows live state. Status alone does not prove
that a particular task succeeded.
Commands and recovery
Type / to discover commands. /help lists them and /keys shows keyboard
bindings. Unknown or failed slash commands remain commands, not model prompts.
| Action | What it does |
|---|---|
| Escape | Dismiss an open dialog first. Otherwise, withdraw a waiting prompt or cancel active work. |
/cancel |
Withdraw a waiting prompt or cancel active work while keeping the conversation. |
/queue |
Show accepted queued prompts. |
| Up in an empty composer | Recall your newest pending message, including images and delivery intent. If it already started, the draft stays unchanged. |
/retry |
Resend the failed instruction. Check for partial changes first. |
/continue |
Send a new instruction to continue a stopped task. |
/reconnect |
Retry Session history observation. It does not repeat the task. |
/exit |
Close this terminal client. |
Ctrl+C dismisses an open dialog first. Otherwise, it exits an idle terminal or
one with a waiting prompt, leaving that prompt queued. During active work, the
first Ctrl+C requests cancellation. A second Ctrl+C exits even if cancellation
is still pending. From your shell, fungi stop stops the shared local service
for all its clients. Saved Sessions remain, and the next launch starts the
service again.
For a single automated prompt, use fungi run "your prompt", or pipe a prompt
to fungi run. Configure a model interactively first. The command waits for its
accepted task’s result and prints the final answer. Failed or cancelled work is
not a successful completion.
Team Computers and local folders
Use fungi login --fungi-mcp <url> with your Team’s MCP endpoint to authorize
Team Computer tools. The browser opens Fungi sign-in and approval and selects
the Team for model billing. Model access and MCP share one Fungi account login.
The project can remember the MCP endpoint, while credentials stay in the local
credential store. The model’s billing Team and the project’s Computer endpoint
are separate choices. Changing one does not retarget the other.
fungi mcp show, fungi mcp use <url> and fungi mcp forget manage that
project selection.
This connection does not sync your folder or let a hosted Agent run commands on
your machine. For that, follow
Attach a local folder, review the access
prompt and keep the attachment command running. fungi computers lists the
selected Team’s Computers. fungi computers start <name> asks to start an
existing one.