All skills
rivet-dev avatar

/rivet-agentos

@6bead6f official
by Rivetrivet-dev/skills31 stars
8

agentOS: A computer for every agent.

Use this Skill: https://skilld.dev/gh/rivet-dev/skills/rivet-agentos

This session only. Nothing lands on disk.

examplesauthenticationREADME.md

≈354 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Authentication

Gate access to your VMs by validating client credentials on the server before any connection is established. Reach for this whenever clients must present a token (a JWT, API key, or session ID) that you verify before letting them create sessions or send prompts.

How it works

The client passes credentials as connection params when it calls getOrCreate. Those params are forwarded to the server, where an onBeforeConnect hook inspects them and rejects the connection by throwing. Because params is typed as unknown on the wire, the hook is the real enforcement point: it checks the token's shape and validity (signature, lookup, expiry) and either returns to admit the connection or throws to deny it. Once admitted, every action on the handle runs against that authenticated connection.

Run it

npm install
ANTHROPIC_API_KEY=sk-... npx tsx server.ts   # in one terminal
ANTHROPIC_API_KEY=sk-... npx tsx client.ts   # in another

A client with a valid authToken connects and lists the working directory; one with a missing or empty token is rejected before any session is created.

Source

View the source on GitHub: https://github.com/rivet-dev/agent-os/tree/main/examples/authentication

Source: SKILL.md on GitHub

1 warningtoday3 checks · Risk SAFE
  • Gen Agent Trust Hubtoday

    This skill is a comprehensive collection of developer documentation and code examples for the agentOS platform. It demonstrates core features such as virtual machine isolation, process management, and host-to-guest function calls. While it includes examples of command execution and external tool installation, these are standard development practices intended for instructional use within the platform's security boundaries.

  • Sockettoday

    12 alerts: gptAnomaly

  • Snyktoday

    Risk: LOW · No issues

Signed by skilld at 6bead6f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 15 hours ago.

Activeupdated yesterday

README badge

README badge for rivet-dev/skills/rivet-agentos