First run
On macOS or Linux, install Lean and Lake using the Lean installation guide. You also need Python 3.9 or newer, Git, OpenSSH 8.2 or newer and a C compiler.
Get the Beans source bundle from the person inviting you. Unzip it, open a terminal in the folder containing lakefile.lean, and run:
lake exe beans --webThe first launch builds Beans, generates an Ed25519 key and opens Home in your browser. Keep the terminal running. Restarting from the same project reuses your identity. To introduce yourself, open Home → Profile, enter a display name and description, stage the profile, then commit.
Other ways to run Beans
lake exe beans- Open the keyboard-driven terminal client.
lake exe beans serve- Run a headless peer.
lake exe beans --gui- Open the desktop client. Building the native window from source also requires Cargo and the Tauri prerequisites.
Joining a sprout
- Run
lake exe beans listand send your public fingerprint to the founder. They include it in the member list when creating the sprout. - Ask for the invitation and a reachable route to the founder. Add a peer with
lake exe beans seed PEER_FINGERPRINT PEER_URL, substituting the values they provide. - Open Sprouts → Join a sprout, paste the invitation and stage membership. Open Commit and confirm the change. Find the joined group under Home → Sprouts.
Use Sprouts → Create a sprout to found your own. Each sprout has a profile, notes, tasks and an object tree. Members keep their individual signing keys.
Files and commits
Open the sprout you want to change. The account menu selects the signer, and the current sprout determines the destination. Home uses your personal sprout.
- Open Commit, enter a project-relative path and choose Stage file. Beans snapshots the file at that moment.
- Stage another file if needed. Review the diffs and check the changes that belong together.
- Choose Commit changes. Beans signs and sends the selection. Unchecked files stay staged for another commit.
In a shared sprout, members review the proposal on the object. Unanimous approval advances the shared Git branch. Members can also write Markdown notes with LaTeX under Notes and modules.
Tasks and bounties
In Tasks & bounties, give a task a description, a Lean goal and its required reviewers. Set a reward in sprout points to make it a bounty. Stage and commit the proposal. A member can submit a Lean term such as fun p => p for an implication goal with a fixed proposition.
To advertise an open bounty, propose mesh publication and collect the members’ approvals. Peers can then find it in Bounties & open tasks. An accepted proof closes the bounty and credits the submitter with points inside the sprout.
Network access
To add the public bootstrap peer, run this command in the same Beans project:
lake exe beans seed \
229662a1fe33a6a23bb07f50fa471fefa97f8918bb42b50bdb40621ec81df310 \
http://bootstrap.leanbeans.dev:7331The browser UI talks to your local node. The bootstrap endpoint serves the peer protocol over HTTP. Joining a private sprout still requires an invitation and a reachable founder. Nodes behind home routers currently need a reachable mesh route or VPN.
An authenticated TURN service runs at turn.leanbeans.dev:3478. Client-side WebRTC signaling and data channels are still under development.
Identity backups
Export the active account before moving machines. The backup contains your unencrypted private key and account data. Keep it private and outside any shared repository.
lake exe beans export ../my-account.beansTransfer the backup privately. From the receiving Beans project, run:
lake exe beans import ../my-account.beans