Skip to content
RAVEN

RAVEN

RENT YOUR COMPUTE POWER, MAKE YOUR AGENT PROUD

Created on 26th July 2026

•

RAVEN

RAVEN

RENT YOUR COMPUTE POWER, MAKE YOUR AGENT PROUD

The problem RAVEN solves

The problem it solves

Renting a GPU or a spare box today means a cloud account, a credit card, a minimum
billing increment, and a signup flow — and on the other side, a machine that sits
idle 90% of the day earning nothing. RAVEN is a marketplace that removes both.

For the renter. Connect a Solana wallet, top up, click Rent. You get an ssh
command, a per-lease root password, and the box's host-key fingerprint. You are
billed per second at the node's advertised rate, and the moment you click
Release — or your balance hits zero — the sandbox is destroyed and you stop paying.
No account, no card, no minimum, no idle charges. The autonomous path is the same
API: an agent signs in, tops up, rents the cheapest node, SSHes in, runs a job, and
releases, with no human in the loop.

For the contributor. One command shares a machine:
docker compose up -d --build contributor. No wallet or private key ever touches
that box — the daemon holds only an opaque bearer key, and the registry signs
payouts server-side. No inbound ports and no port forwarding: each lease dials
out through a reverse tunnel, so a laptop behind NAT can earn without touching a
router. Earnings settle on-chain automatically at the end of every lease.

What makes it safer than "here's SSH to my box." Every lease is a throwaway
container with no bind mounts, bridge networking, every Linux capability dropped
except the handful sshd needs, no-new-privileges, no swap, and capped CPU/RAM/PIDs.
Credentials are generated per lease, passed as env and unset before anything can read
them via docker inspect, and never logged. A hard TTL inside the guest plus a
reaper on the host guarantee a sandbox never outlives its lease — even if the
registry dies. And because renters get the host-key fingerprint up front, they can
verify the machine instead of trusting it on first connect.

Challenges we ran into

The reaper was eating live leases

Renters kept getting Connection closed seconds after a lease went active. The
daemon log had the answer, once we read it carefully:

lease 2509060c-e5e2-4f3e-8b8b-144a474ee57f up: ssh [email protected] -p 48372
reaped 2 orphan sandbox(es): 2509060c, contributor-1

Two bugs in one line. Containers were named raven-<first 8 chars of lease id>, and
the orphan reaper reconstructed the lease id from that name — so it compared
2509060c against the full UUID the daemon held, never matched, and destroyed every
live lease one tick after it started. Worse, the name=raven- filter also matched
raven-contributor-1: the daemon was reaping itself, and would have taken
raven-backend-1 and raven-web-1 with it on a shared host.

The fix was to stop deriving identity from a human-readable name. Containers now
carry raven.lease=<full uuid> and raven.role=sandbox labels, and the reaper
filters on the label. Names became cosmetic. The original test used a fake backend
and never exercised the name parsing, so we added a regression test that asserts the
full id survives, that an unlabelled raven-contributor-1 row is ignored, and that a
running lease is never reaped.

"Connection closed" that was four different bugs wearing a trenchcoat

The same symptom kept coming back for unrelated reasons, and each one looked
identical from the renter's side — TCP connects, then dies before the SSH banner.

  1. Over-hardening. We had shipped --read-only and --cap-drop=ALL. But the
    sandbox writes SSH host keys and the root password at boot, and sshd's privilege
    separation needs SYS_CHROOT. Under set -e the entrypoint died instantly — yet
    the tunnel container stayed up, so the relay happily accepted connections to
    nothing. We dropped --read-only and re-added exactly the seven capabilities sshd
    needs, no more.
  2. A firewall hop nobody could see. The tunnel forwarded to the sandbox's
    published port via host.docker.internal — traffic from the Docker bridge back
    into a host port, which Ubuntu's default ufw rules silently drop.
  3. No readiness gate. The daemon advertised the lease the instant the relay
    printed a port, so renters could connect before ssh-keygen -A finished.
  4. A 60-second TTL floor meant a thin balance self-destructed the box mid-session.

The structural fix collapsed the whole design: the tunnel client now runs inside the
sandbox container as its main process, so there is one container per lease, no bridge
hop, no host port published at all, and the container's lifetime is the tunnel's
lifetime. On top of that, the daemon refuses to advertise a lease until it has dialed
the public address itself and seen a real SSH-2.0 banner come back — so a relay that
accepts a port and drops the traffic fails loudly on our side instead of silently on
the renter's.

A deposit that took the money and credited nothing

A wallet returns a transaction signature the moment it sends, not when it confirms.
Our top-up endpoint did a single getTransaction at confirmed, which almost always
ran ahead of the chain and returned null — so the SOL had left the user's wallet and
their balance still read zero, with the signature gone forever once they closed the
tab.

We fixed it on both sides: the registry polls for confirmation and returns a
retryable 409 rather than a generic error, and the browser parks the signature in
localStorage before calling, clears it only on success, and retries on next load.
Crediting is idempotent by transaction id, so retrying is free and can never
double-credit. A permanently bad signature is dropped instead of retried forever.

Static bundles bake their config at build time

The UI would load perfectly and then fail every API call with Failed to fetch.
NEXT_PUBLIC_REGISTRY_URL is inlined at build time, .dockerignore kept web/.env
out of the build context, and Compose interpolates build args from the shell — not
from env_file. So the "correct" URL in web/.env was never read by anything, and
the default (localhost:4000) got baked in, pointing every visitor at their own
machine. We made the image proxy /api to the backend on its own origin so the
default is correct with zero configuration, and made fetch failures name the exact
URL that failed instead of the browser's useless generic message.

Tracks Applied (6)

Best Use of Solana

Solana isn't a payment button bolted on the side it's the identity layer, the funding rail, and the settlement rail for ...Read More
Solana

Solana

Best Use of DigitalOcean

A Droplet plays a role here that no contributor machine can: it is the one host with a stable public address, and the en...Read More
DigitalOcean

DigitalOcean

Best Use of MongoDB Atlas

MongoDB holds only the money balances, deposits, charges, payouts, sign-in nonces and contributor keys. Nodes and live l...Read More
MongoDB

MongoDB

Best Use of Solana

Solana isn't a payment button bolted on the side it's the identity layer, the funding rail, and the settlement rail for ...Read More
Major League Hacking

Major League Hacking

Best Use of DigitalOcean

How does this project fit within the track? A Droplet plays a role here that no contributor machine can: it is the one ...Read More
Major League Hacking

Major League Hacking

Best Use of MongoDB Atlas

MongoDB holds only the money balances, deposits, charges, payouts, sign-in nonces and contributor keys. Nodes and live l...Read More
Major League Hacking

Major League Hacking

Discussion

Builders also viewed

See more projects on Devfolio