Skip to main content

Prerequisites

  • Python 3.10 or higher
  • Truffle¹
  • The TruffleOS desktop client

Install Python

brew install [email protected]
Verify the installation:
python3 --version

Set Up Your Environment

Choose your preferred method for managing Python environments:
Create and activate a virtual environment:
python3 -m venv .venv
source .venv/bin/activate

Install Truffile

With your environment activated, install the SDK:
pip install truffile
Verify the installation:
truffile
You should see:
🍄‍🟫 truffile - TruffleOS SDK

Usage: truffile <command> [options]

Commands:
  scan                      Scan network for Truffle devices
  connect <device>         Connect to a Truffle device
  disconnect <device|all>  Disconnect and clear credentials
  deploy [path]            Deploy an app (reads type from truffile.yaml)
  list <apps|devices>      List installed apps or devices
  models                    List AI models on connected device
  proxy                     Start OpenAI-compatible inference proxy

Examples:
  truffile scan                # find devices on network
  truffile connect truffle-6272
  truffile deploy ./my-app
  truffile deploy              # uses current directory
  truffile list apps
  truffile models              # show loaded models
  truffile proxy               # start proxy on :8080
Make sure you’ve already onboarded your Truffle with the desktop client and created an account before proceeding.

Next Steps

Now that you have Truffile installed, head to the CLI guide to connect to your Truffle device.