Using Toyon

Each chat works on its own copy of your project, with the app running in the preview.

Existing local project

Run toyon in the project's folder.

The first time you open a project, Toyon guesses how to run it from the dev or start script in package.json. If the preview fails to load, Toyon offers to have the agent fix it. See settings.md for more configuration options.

Your dev server must listen on $PORT, because Toyon sets a different port for each chat.

New project

Run toyon outside a project. Describe a new project in a sentence, or paste a git URL into the project picker to clone it.

toyon https://github.com/you/app opens Toyon ready to clone that repository into the current folder. Links to a branch, a file or a pull request on GitHub, GitLab or Codeberg work too.

Start a chat

Your first message starts a copy of the project: a branch and a git worktree, with your dependencies and .env files. Sign in to your agent from the chat. Claude Code and Codex install on first start; install OpenCode from its row's menu. See agents.md.

Ask for a change

Type what you want and send it. Toyon tells the agent which page you are on and what errors it has thrown. See preview.md.

Check the change

The preview shows the copy's app. Your dev server reloads it as the agent writes.

If the server crashed, a card replaces the page. See preview.md.

Permission modes

Each chat has a mode, shown next to the prompt. Type /auto, /ask or /plan to switch.

Mode What the agent can do
auto The default. Edits and sandboxed commands run. A plan still needs your approval.
ask Every edit and every command needs your approval first.
plan The agent can read but not change anything. It proposes a plan, and approving it starts the work in auto or ask.

What the sandbox allows in each is in trust.md.

Land

To keep a change, press land or type /land. Land merges the chat's branch into main on your machine. If the settings have a check command, it must pass first.

Shortcuts

Press ⌘, for the full list. What else Toyon does is in features.md, and each feature with its shortcut is in shortcuts.md.

Disk

Limits