Skip to main content

Prerequisites

Agent setup prompt

If you want Codex, Claude Code, or another coding agent to set up Truffile for you, paste this prompt into the agent from the directory where you want the environment created:
The prompt works because Truffile is CLI-first: every core workflow has explicit arguments, and truffile load all gives the agent local skills and example apps to read before it starts building.

Install Python

Verify:

Set up a virtual environment

Install Truffile

With your environment activated:
Verify the installation:
The import should print ok, and the help output should list the Convo prompt, targeting, action, and output flags. The released wheel already contains its generated truffle.*_pb2 bindings.

Installing from a source checkout

The repo-root truffle/ generated package is deliberately gitignored in the source repository. Before an editable install or wheel build, copy it from the generated Python tree in a matching pyfw checkout. Do not rely on an untracked scripts/ helper.
The editable install imports the staged ignored package in place. If you are building a distributable wheel, record the selected protocol source revision and build only after staging the generated package:
That wheel embeds the generated bindings, type stubs, and PROTOCOL_SHA, so a normal installation from the wheel is self-contained.
Before connecting from Truffile, onboard your device through the Symphony desktop client. Download Symphony from the client overview, complete device onboarding, then copy your User ID from Symphony → Settings. truffile connect will ask for that User ID and then you must approve the new session on your Truffle device.

Next steps

Start a Convo

Connect, open a Convo thread, and talk to the stateful on-device agent.

Build your first app

Learn how Truffle apps are structured and scaffold one with truffile create.