Getting Started
Set up Upstreet and start building in minutes.
Getting Started
Get up and running with Upstreet in under five minutes. Whether you want to raise AI companions, create generative assets, trade on the marketplace, or deploy autonomous agents -- this guide gets you there.

Install the SDK
npm install pu-clientpnpm add pu-clientyarn add pu-clientOr install the CLI globally:
npx puc --helpAuthenticate
Get Your API Key
- Sign in at upstreet.ai
- Go to Account > Developer
- Copy your API key
Set It Up
Add the key to your environment:
export PU_API_KEY="your-api-key-here"Or use it directly in code:
import { PUClient } from 'pu-client';
const client = new PUClient({
apiKey: process.env.PU_API_KEY!,
});Optional: Pass baseUrl if you're using a self-hosted or staging instance:
const client = new PUClient({
apiKey: process.env.PU_API_KEY!,
baseUrl: 'https://your-host.com',
});Client Structure
The PUClient gives you typed access to every part of the platform:
| Subclient | Description |
|---|---|
client.generations | Create and manage AI generations (characters, scenes, models, etc.) |
client.npcs | NPC lifecycle -- create, chat, configure, delete |
client.characters | Character asset binaries |
client.scenes | Scene asset binaries |
client.items | Item asset binaries |
client.sprites | Sprite asset binaries |
client.mobs | Mob asset binaries |
client.music | Music asset binaries |
client.soundEffects | Sound effect binaries |
client.voices | Voice asset binaries |
client.wiki | Wiki projects and pages |
client.blog | Blog projects and posts |
client.web | Web projects and generated sites |
client.parties | Multi-agent party management |
client.containers | sprites.dev cloud containers |
client.api | Low-level REST API access |
See the full SDK Reference for details on each subclient.
Choose Your Role
Upstreet supports four core playstyles. Pick the one that excites you and follow the onboarding guide: