This the clean setup of Pi on OpenRouter by default
npm install -g @mariozechner/pi-coding-agentCheck that it installed:
PI is a TypeScript toolkit for building AI agents. It's a monorepo of packages that layer on top of each other: pi-ai handles LLM communication across providers, pi-agent-core adds the agent loop with tool calling, pi-coding-agent gives you a full coding agent with built-in tools, session persistence, and extensibility, and pi-tui provides a terminal UI for building CLI interfaces.
These are the same packages that power OpenClaw. This guide walks through each layer, progressively building up to a fully featured coding assistant with a terminal UI, session persistence, and custom tools.
By understanding how to compose these layers, you can build production-grade agentic software on your own terms, without being locked into a specific abstraction.
Pi was created by @badlogicgames. This is a great writeup from him that explains some of the design decisions made when creating it.
| #!/usr/bin/env bash | |
| echo "──────────────────────────────────────────────" | |
| echo " Removing Python's EXTERNALLY-MANAGED lock " | |
| echo "──────────────────────────────────────────────" | |
| echo "* Developed and engineered by:" | |
| echo "* Felipe Alfonso Gonzalez <f.alfonso@res-ear.ch>" | |
| echo "* Computer Science Engineer" | |
| echo "* Chile" | |
| echo "------------------------------------------------" |
Specifically from Rakuten TV (live.tv.rakuten.co.jp)
FMI: https://cdm-project.com/How-To/ & https://old.reddit.com/r/Piracy/comments/y30ffr/
(See also the Termux Wiki)
# Install AutoSSH, OpenSSH and FTP server and tmux
pkg upgrade
pkg install autossh openssh openssh-sftp-server tmux
# Set password for initial connection
passwd
# Find local IP address of device
ifconfig | grep -o 192[0-9\.]*| import { Entypo, Feather } from '@expo/vector-icons'; | |
| import faker from 'faker'; | |
| import * as React from 'react'; | |
| import { Dimensions, FlatList, Text, TouchableOpacity, View } from 'react-native'; | |
| const { width, height } = Dimensions.get('screen'); | |
| faker.seed(10); | |
| const data = [...Array(20).keys()].map(() => ({ |
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.
| /** | |
| * Converts pixel size to rem and accepts the base as second argument. default base is 16px | |
| * | |
| * @param {number|string} px | |
| * @param {number} base | |
| * @return {string} | |
| */ | |
| const remCalc = (px: number | string, base: number = 16) => { | |
| const tempPx = `${px}`.replace('px', '') |
| { | |
| # Enable Debug mode | |
| debug | |
| # Disable admin API | |
| admin off | |
| } | |
| localhost { | |
| # https://caddyserver.com/docs/caddyfile/directives/push |