Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

@vercel/dream

Package Overview
Dependencies
Maintainers
373
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/dream

A CLI that runs OpenCode in a loop until specs are complete

latest
npmnpm
Version
0.2.1
Version published
Weekly downloads
0
Maintainers
373
Weekly downloads
 
Created
Source

@vercel/dream

Write a spec. Get a deployed app.

Dream is a CLI that turns markdown specifications into fully built applications on Vercel. It runs an AI agent in a loop, reading your specs, writing code, and producing a deployable build — no scaffolding, no boilerplate, no manual steps.

pnpm add @vercel/dream

How it works

  • You write a specification in specs/
  • dream reads it, plans the work, and starts building
  • The agent loops — reading, coding, verifying — until every requirement is met
  • Output lands in .vercel/output/ ready to deploy
▲ dream · my-app

  dir         /Users/you/code/my-app
  model       vercel/anthropic/claude-opus-4.5
  timeout     60.0m
  max         100 iterations

  ● OpenCode ready
  ● Provider vercel connected

  [1] Running session...
       ▸ read specs/app.md
       ▸ write PROGRESS.md

       Starting with the HTML structure and core game logic.

       ▸ write .vercel/output/config.json
       ▸ write .vercel/output/static/index.html
       ✎ .vercel/output/static/index.html
       ▸ write .vercel/output/static/styles.css
       ✎ .vercel/output/static/styles.css
       ▸ write .vercel/output/static/app.js
       ✎ .vercel/output/static/app.js

       All tasks complete. Verifying output structure.

       ▸ glob .vercel/output/**/*
       12 tools · 48.2k→3.1k · $0.12
  [1] ✓ Done (34.2s)

  ✓ Completed in 1 iteration(s) (34.2s)

Quick start

# Scaffold a new project
dream init my-app
cd my-app

# Write your spec
cat > specs/app.md << 'EOF'
# Landing Page

A minimal dark-themed landing page with:
- Hero section with animated gradient title
- Feature grid (3 columns)
- Email signup form
EOF

# Build it
pnpm install
dream

Specs

Specs are markdown files in the specs/ directory. Write what you want — the more detail, the better the output. The agent reads every .md file in the directory.

specs/
├── app.md           # Main application spec
├── design.md        # Visual design requirements
└── accessibility.md # A11y requirements

Output

Dream produces Vercel Build Output API v3 — static files in .vercel/output/static/ with a config.json. Deploy to Vercel or serve anywhere.

Commands

CommandDescription
dreamBuild the project from specs
dream initScaffold a new dream project
dream modelsList available models and auth status
dream configShow project configuration

Options

FlagDescriptionDefault
-m, --modelModel in provider/model formatvercel/anthropic/claude-opus-4.5
-t, --timeoutTimeout in milliseconds3600000 (60m)
-i, --max-iterationsMaximum agent loops100
-v, --verboseShow all eventsfalse
-d, --dirWorking directory.

Authentication

Dream uses the Vercel AI Gateway. Authenticate with either:

OIDC token (Vercel deployments & local dev):

vercel env pull  # writes .env.local with VERCEL_OIDC_TOKEN
source .env.local
dream

API key:

export VERCEL_API_KEY=your_key
dream

Requirements

  • OpenCode installed and available on PATH
  • Node.js 18+
  • A Vercel account with AI Gateway access

License

MIT

Keywords

cli

FAQs

Package last updated on 08 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts