Skip to content

blubblub/warp-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

warp-node

A NodeJS TypeScript library that wraps the Warp CLI.

Installation

npm install warp-node

Usage

import { warp } from 'warp-node';

// Run a single agent task and wait for the result
const result = await warp.agent.run({
  prompt: 'Create a hello world file',
  cwd: './project'
});

console.log(result.stdout);

// Spawn an agent process (for streaming or concurrent execution)
const process = warp.agent.spawn({
  prompt: 'Long running task',
  share: ['team:view']
});

process.stdout?.pipe(process.stdout);

// List available agent profiles
const profiles = await warp.profiles.list();
profiles.forEach(p => {
  console.log(`${p.name} (${p.id})`);
});

// Find a profile by name (case-insensitive)
const profile = await warp.profiles.findByName('Automatic');
if (profile) {
  console.log(`Found profile: ${profile.name} (${profile.id})`);
}

// Use a specific profile by name
const profileResult = await warp.agent.run({
  prompt: 'Create a hello world file',
  profile: profile?.id
});

Features

  • TypeScript support
  • Supports API Key authentication
  • Supports all warp agent run options (prompt, saved-prompt, profile, environment, mcp-servers, etc.)
  • Profile management (list profiles, find by name)
  • Helper to spawn multiple processes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published