SDK v2 installer

Install Deepline for plays.

Run one script to install the TypeScript SDK CLI, connect your account, and get the command your agent can use from any project.

Install

Adds the Deepline SDK CLI as the `deepline` command.

Authenticate

Opens the browser approval flow and saves host-scoped auth.

Run a play

Use a TypeScript play file from your project.

Install command

recommended
$ curl -sS "https://code.deepline.com/api/v2/sdk/install" | bash
What the script does
  • Checks Node.js 18+.
  • Runs npm install -g deepline on production installs.
  • Adds the install directory to your shell PATH when needed.
  • Starts deepline auth register so the browser can approve the CLI.
  • Installs the deepline-sdk skill for Codex, Claude Code, and Cursor.
  • Optionally updates Claude command permissions and prompt-sharing preferences.
Manual fallback

Use this if you want to manage the global npm install yourself.

manual
$ npm install -g deepline && deepline auth register

Try a starter play

This is intentionally fake for the installer page. It proves the CLI can bundle and run a play before you wire in real enrichment tools.

create file
$ cat > hello-company.play.ts
run play
$ deepline plays run hello-company.play.ts --input '{"company":"Acme","domain":"acme.com"}' --watch
hello-company.play.ts
import { definePlay } from "deepline";

type Lead = {
  company: string;
  domain: string;
};

export default definePlay("hello-company", async (ctx, lead: Lead) => {
  // Fake starter play for install verification. Swap this for real tools next.
  await ctx.log(`Looking up ${lead.company}`);

  return {
    company: lead.company,
    domain: lead.domain,
    nextStep: "Replace this return block with ctx.tools.execute({ id, tool, input })",
  };
});