You can install tinfoil CLI using our install script. This script automatically detects your operating system and architecture, downloads the correct binary, and installs it to /usr/local/bin.
Copy
Ask AI
curl -fsSL https://github.com/tinfoilsh/tinfoil-cli/raw/main/install.sh | sh
If you receive permission errors (for example, if you’re not running as root), you may need to run the command with sudo.
Usage: tinfoil [command]Available Commands: attestation Attestation commands completion Generate the autocompletion script for the specified shell help Help about any command http Make verified HTTP requests proxy Run a local HTTP proxyFlags: -h, --help Help for tinfoil -e, --host string Enclave hostname -r, --repo string Enclave config repo -t, --trace Trace output -v, --verbose Verbose outputUse "tinfoil [command] --help" for more information about a command.
Use the attestation verify command to manually verify that an enclave is running the expected code. The output will be a series of INFO logs describing each verification step.Sample successful output:
Copy
Ask AI
$ tinfoil attestation verify \ -e inference.tinfoil.sh \ -r tinfoilsh/confidential-model-routerINFO[0000] Fetching latest release for tinfoilsh/confidential-model-routerINFO[0000] Fetching sigstore bundle from tinfoilsh/confidential-model-router for digest f2f48557c8b0c1b268f8d8673f380242ad8c4983fe9004c02a8688a89f94f333INFO[0001] Fetching trust rootINFO[0001] Verifying code measurementsINFO[0001] Fetching attestation doc from inference.tinfoil.shINFO[0001] Verifying enclave measurementsINFO[0001] Public key fingerprint: 5f6c24f54ed862c404a558aa3fa85b686b77263ceeda86131e7acd90e8af5db2INFO[0001] Measurements match