Déployer avec un agent
Un agent de programmation capable d’exécuter des commandes shell (Claude Code, Codex, Cursor, Gemini CLI, Aider et d’autres) peut faire toute la configuration à partir d’un seul prompt. Il lit la documentation depuis deux fichiers en texte brut faits pour les agents :
- llms.txt : ce qu’est casty, les commandes, et des liens vers chaque page ;
- llms-full.txt : chaque page de cette documentation dans un seul fichier.
Le dépôt contient le même llms.txt à sa racine.
Le prompt
Section intitulée « Le prompt »Collez-le tel quel. L’agent vous demande votre fid et la voie que vous voulez : un nouveau nœud à vous, ou casty connecté à un nœud qui tourne déjà.
Set up casty for me: https://github.com/castyfun/casty. Read https://castyfun.github.io/casty/llms-full.txt first.1. Clone the repository and cd into it.2. Ask me for my Farcaster fid, and which of these I want: a) a new node of my own: I give you HCLOUD_TOKEN or AWS credentials, or user@ip of a Linux host with 16 GB RAM and 2 TB free disk; b) no node of my own: connect casty to an existing Snapchain node URL (default https://snap.farcaster.xyz:3381).3. For a), first run ./scripts/deploy.sh --fid <fid> --dry-run (add -- --host user@ip for my own host), show me what it would create and what it costs, and only after my "yes" run the same command with --yes instead of --dry-run. The node sync takes hours: if the wait stops, run ./scripts/1-node.sh status --wait, then run deploy.sh again; it resumes. For b), run ./scripts/2-client.sh --node <url> --fid <fid>.4. Never ask me for my seed phrase or recovery phrase and never type one anywhere. The app key is added with my wallet: tell me to run ./bin/casty web in my own terminal (it asks me for a new passphrase), open the link it prints, go to "you" and press "add a key with your wallet". If my account was made in the Farcaster app, no browser wallet holds its custody key: tell me to show the recovery phrase in the app on my phone and import it once into a browser wallet (MetaMask or Rabby), or to run ./bin/casty init in my own terminal and type it there.5. Check the result with ./bin/casty doctor and ./bin/casty whoami, then show me ./bin/casty feed --limit 5.If a step fails, read its error line and hint, look the message up in https://castyfun.github.io/casty/troubleshooting/, fix the cause and run the same command again.Ce qui reste entre vos mains
Section intitulée « Ce qui reste entre vos mains »- L’argent. Rien de payant n’est créé avant que vous ayez vu le plan de
--dry-runet dit oui../scripts/0-provision.sh --destroyle supprime ensuite. - La phrase de récupération. Le prompt interdit à l’agent de la demander. La clé d’application
est autorisée par votre portefeuille dans
casty web, que vous démarrez vous-même, donc la phrase de passe du magasin de clés vous appartient aussi. - Les identifiants cloud. L’agent n’a besoin de
HCLOUD_TOKENou des identifiants AWS que pour un nouveau nœud. Donnez-lui un jeton que vous pouvez révoquer, et révoquez-le une fois le nœud en marche ; casty n’en a de nouveau besoin que pour supprimer le serveur.
Voir Sécurité pour chaque secret concerné et comment révoquer chacun d’eux.