Skip to content

feat: terminal dev cli #69

Merged
CocDap merged 6 commits intomainfrom
feat/terminal-cli
Jul 23, 2025
Merged

feat: terminal dev cli #69
CocDap merged 6 commits intomainfrom
feat/terminal-cli

Conversation

@CocDap
Copy link
Copy Markdown
Contributor

@CocDap CocDap commented Jul 22, 2025


PR: Add Terminal CLI for Polkadot Agent Kit

Overview

This PR introduces a fully-featured terminal CLI (@polkadot-agent-kit/cli) for managing and interacting with AI agents on the Polkadot network. The CLI enables users to create, configure, and run agents, perform blockchain operations, and interact with agents in an interactive chat session—all from the command line.


Key Features

  • Agent Management

    • Create new agents with private key or mnemonic import, key type selection, and network selection (all or specific chains).
    • List, delete, and update agent configurations.
    • Store agent metadata and configuration securely on disk.
  • Blockchain Operations

    • Check balances on supported chains.
    • Transfer tokens (native and XCM/cross-chain).
    • Swap tokens using DEX protocols.
    • Staking operations (join pool, bond extra, unbond, withdraw, claim rewards).
  • Interactive Chat

    • Start a chat session with an agent in the terminal.
    • Natural language commands are parsed and routed to the appropriate blockchain tools (balance, transfer, xcm, swap, etc.).
    • Unified system prompt ensures consistent agent behavior and clear instructions.

Example Usage

# Create a new agent interactively
pak agent create my-agent --interactive

# List all agents
pak agent list

# Start an interactive chat session
pak agent chat my-agent

@CocDap CocDap force-pushed the feat/terminal-cli branch from b9e82cd to a40760e Compare July 23, 2025 08:29
@CocDap
Copy link
Copy Markdown
Contributor Author

CocDap commented Jul 23, 2025

image
pak agent create dot-agent

@CocDap
Copy link
Copy Markdown
Contributor Author

CocDap commented Jul 23, 2025

pak agent chat dot-agent

User: check balance on dot

Agent:
image

@CocDap CocDap merged commit 3e2631a into main Jul 23, 2025
1 check passed
@CocDap CocDap deleted the feat/terminal-cli branch July 23, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant