Upstreet Docs
    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.

    Screenshot of the Upstreet dashboard showing the home page with feature tabs for Wiki, Generations, NPCs, Editor, and Play


    Install the SDK

    npm install pu-client
    pnpm add pu-client
    yarn add pu-client

    Or install the CLI globally:

    npx puc --help

    Authenticate

    Get Your API Key

    1. Sign in at upstreet.ai
    2. Go to Account > Developer
    3. 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:

    SubclientDescription
    client.generationsCreate and manage AI generations (characters, scenes, models, etc.)
    client.npcsNPC lifecycle -- create, chat, configure, delete
    client.charactersCharacter asset binaries
    client.scenesScene asset binaries
    client.itemsItem asset binaries
    client.spritesSprite asset binaries
    client.mobsMob asset binaries
    client.musicMusic asset binaries
    client.soundEffectsSound effect binaries
    client.voicesVoice asset binaries
    client.wikiWiki projects and pages
    client.blogBlog projects and posts
    client.webWeb projects and generated sites
    client.partiesMulti-agent party management
    client.containerssprites.dev cloud containers
    client.apiLow-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: