Skip to content

CAIP Discussion: CLI Wallet Protocol (CWP) #396

Open

Description

@arein

CLI Wallet Protocol (CWP)

A standard protocol for CLI applications to discover and interact with wallet providers through executable plugins on PATH.

Problem

CLI-based blockchain tools hardcode support for specific wallet providers, creating tight coupling. There's no CLI equivalent of EIP-6963 (browser wallet discovery).

Proposed Solution

  • Binary naming convention: wallet-<name> executables on PATH
  • JSON stdin/stdout communication: Avoids shell escaping issues
  • Standard operations: info, accounts, sign-message, sign-typed-data, sign-transaction, send-transaction
  • Semantic exit codes: Enable orchestration and error handling
  • Orchestrator CLI: wallet binary discovers providers and delegates

Inspiration

Reference Implementation

The full draft spec will be submitted as a PR.

Activity

  1. bumblefudge commented on Apr 29, 2026

    @bumblefudge
    Collaborator

    Initial draft merged but I am leaving the issue open and assigned to you for the minor suggestions i made in that initial PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions