open, interoperable sandbox platform for agents and humans 📦 ✨ pocketenv.io
claude-code atproto sandbox openclaw agent
at main 33 lines 700 B view raw
1import { client } from "."; 2import type { SshKeys } from "../types/sshkeys"; 3 4export const saveSshKeys = ( 5 sandboxId: string, 6 privateKey: string, 7 publicKey: string, 8 redacted: string, 9) => 10 client.post( 11 "/xrpc/io.pocketenv.sandbox.putSshKeys", 12 { 13 id: sandboxId, 14 privateKey, 15 publicKey, 16 redacted, 17 }, 18 { 19 headers: { 20 Authorization: `Bearer ${localStorage.getItem("token")}`, 21 }, 22 }, 23 ); 24 25export const getSshKeys = (sandboxId: string) => 26 client.get<SshKeys>("/xrpc/io.pocketenv.sandbox.getSshKeys", { 27 params: { 28 id: sandboxId, 29 }, 30 headers: { 31 Authorization: `Bearer ${localStorage.getItem("token")}`, 32 }, 33 });