New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@edgedive/cli

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

@edgedive/cli

unpublished
npmnpm
Version
0.1.0
Version published
Weekly downloads
13
225%
Maintainers
1
Weekly downloads
 
Created
Source

Edgedive CLI

Command-line tool for taking over Edgedive agent sessions locally and continuing development with Claude Code.

Installation

# Install globally
npm install -g @edgedive/cli

# Or use with npx (no installation required)
npx @edgedive/cli <command>

Usage

Login

Authenticate with Edgedive using OAuth:

edgedive login

Required options (choose one):

  • --pr-url – GitHub pull request URL created by the agent
  • --issue-url – Linear issue URL associated with the session

This will:

  • Open your browser to the Edgedive authorization page
  • Ask you to approve access for the CLI
  • Store your access token locally in ~/.edgedive/config.json

The token is valid for 30 days.

Takeover

Take over an agent session from a GitHub PR:

# By PR URL
edgedive takeover --pr-url https://github.com/owner/repo/pull/123

# By Linear issue URL
edgedive takeover --issue-url https://linear.app/acme/issue/RND-123

This will:

  • Validate that you are inside the matching Git repository (based on the PR owner/name)
  • Restore the Claude session file as ~/.claude/projects/{sanitized_repo_path}/{claude_session_id}.jsonl
  • Fetch and check out the PR branch locally
  • Launch Claude (claude -r <session_id>) in the repo root

Prerequisites:

  • You must be logged in (edgedive login)
  • The PR must have been created by an Edgedive agent session
  • You must have access to the tenant that owns the session
  • Run the command from within the local clone of the target repository

Example output:

🔧 Edgedive Session Takeover

PR URL: https://github.com/owner/repo/pull/123

🔍 Fetching session information...

✅ Found agent session!

Session Information:
  Session ID: abc-123-def-456
  Agent Type: claude_code
  Status: completed
  Repository: owner/repo
  Branch: feature/new-feature

✅ Using repository at /Users/you/src/owner/repo

📁 Restored Claude session to: /Users/you/.claude/projects/Users-you-src-owner-repo/xyz-789.jsonl

✅ Checked out branch feature/new-feature

🚀 Launching Claude session xyz-789...

... (Claude CLI output) ...

✅ Claude session closed. Happy debugging!

Logout

Remove stored credentials:

edgedive logout

This removes the config file at ~/.edgedive/config.json.

Configuration

The CLI stores configuration in ~/.edgedive/config.json, which contains:

  • OAuth access token
  • Token expiration time
  • OAuth scope

The file has restricted permissions (0600) for security.

Environment Variables

You can override default settings using environment variables:

  • EDGEDIVE_API_URL - API base URL (default: https://api.edgedive.com)
  • EDGEDIVE_CLIENT_ID - OAuth client ID (default: registered CLI client ID)

Development

Setup

cd packages/edgedive-cli
pnpm install
pnpm build
npm link

Now you can run edgedive commands from anywhere.

Build

pnpm build

Compiles TypeScript to JavaScript in the dist/ directory.

OAuth Flow

The CLI uses OAuth 2.0 with PKCE (Proof Key for Code Exchange) for secure authentication:

  • CLI generates a code verifier and code challenge
  • Opens browser to authorization URL with code challenge
  • User approves access in the Edgedive web UI
  • Authorization server redirects to local callback server (http://localhost:8765)
  • CLI exchanges authorization code for access token using code verifier
  • Token is stored locally for future requests

The token is scoped to your tenant and allows read/write access as configured.

Troubleshooting

"You are not logged in"

Run edgedive login to authenticate.

"Your session may have expired"

Tokens expire after 30 days. Run edgedive login to refresh.

"No agent session found for PR"

The PR may not have been created by an Edgedive agent, or you may not have access to the tenant.

"Failed to download file"

The presigned URLs expire after 1 hour. If this happens, run the takeover command again to generate fresh URLs.

Browser doesn't open during login

Copy the URL from the terminal and paste it into your browser manually.

Security

  • OAuth tokens are stored with restricted file permissions (0600)
  • PKCE prevents authorization code interception attacks
  • Tokens are scoped to specific tenants
  • Presigned S3 URLs expire after 1 hour
  • Local callback server only accepts connections from localhost

License

UNLICENSED - Internal Edgedive tool

FAQs

Package last updated on 29 Oct 2025

Related posts