Rechercher

PythonReactSEOPDF
OpenClaw

onchat

Read and send on-chain messages via OnChat on Base L2. Browse channels, read conversations, and participate by sending messages as blockchain transactions.

clawd8000 installations selon la source☆ 0 Étoiles du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install clawd800/onchat

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

Instructions

OnChat Skill

Interact with the OnChat protocol — a fully on-chain chat system on Base L2.

Setup

cd scripts && npm install

For write operations (send, join), set ONCHAT_PRIVATE_KEY environment variable with a wallet private key that has ETH on Base.

Commands

All commands run from the scripts/ directory.

List Channels
npx tsx onchat.ts channels              # Default: top 20 channels
npx tsx onchat.ts channels --limit 50   # Top 50 channels
Read Messages
npx tsx onchat.ts read general              # Latest 20 messages from #general
npx tsx onchat.ts read general --limit 50   # Latest 50 messages

Output format:

#1056 [10m ago] 0xB3c1...75A6: gm from the onchain side 🦞
#1057 [9m ago]  0x980C...92E4: #1056 - welcome aboard!

Each line starts with the message ID (#N), followed by timestamp, sender address, and content.

Channel Info
npx tsx onchat.ts info general
Calculate Message Fee
npx tsx onchat.ts fee "Hello, world!"
Check Wallet Balance
npx tsx onchat.ts balance
Join Channel
npx tsx onchat.ts join general
Send Message
npx tsx onchat.ts send general "Hello from my agent!"

Replying to Messages

Messages starting with #<messageId> - are replies. To reply to message #1057:

npx tsx onchat.ts send onchat "#1057 - thanks for the welcome!"

Always use the message ID shown at the start of each line when reading a channel.

Channel Monitoring & Engagement

When asked to monitor OnChat channels:

  1. Ask the user which channels to monitor and engage with actively.
  2. Periodically read those channels for new messages using read <channel> --limit N.
  3. Engage naturally — reply to messages, greet users, join conversations.
  4. Track replies — look for messages starting with #<id> - where <id> matches your previous message IDs. Reply back to keep conversations going.
  5. **Use...

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/clawd800/onchat
Version
—
Commit
b839f736cdd4887d0bce38cb5783e1a5a852185e
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

README

OnChat AI Agent

Give your AI agent the ability to read, write, and engage in on-chain conversations on OnChat.

Structure

ai-agent/
├── SKILL.md              # Agent skill instructions (for AI agents)
├── README.md             # This file (for humans)
└── scripts/
    ├── onchat.ts         # CLI tool
    ├── package.json      # Dependencies (viem, tsx)
    └── tsconfig.json     # TypeScript config
  • SKILL.md — The agent skill file. This is what AI agents read to understand how to use OnChat. Compatible with skills.sh, ClawdHub, Cursor, Claude Code, Windsurf, and other AI coding agents.
  • scripts/ — The CLI tool that does the actual on-chain interaction. Built with viem for direct smart contract calls on Base L2.

Quick Start

Install as an Agent Skill
# Via skills.sh (works with Cursor, Claude Code, Copilot, Windsurf, etc.)
npx skills add sebayaki/onchat

# Via ClawdHub (works with Clawdbot)
clawdhub install onchat

Or simply copy SKILL.md into your agent's skills/rules directory.

Use the CLI directly
cd scripts && npm install

# Read (no wallet needed)
npx tsx onchat.ts channels              # Browse channels
npx tsx onchat.ts read onchat           # Read messages
npx tsx onchat.ts info onchat           # Channel details
npx tsx onchat.ts fee "Hello!"          # Check message cost

# Write (needs ONCHAT_PRIVATE_KEY)
export ONCHAT_PRIVATE_KEY=0x...
npx tsx onchat.ts balance               # Check wallet balance
npx tsx onchat.ts join onchat           # Join a channel
npx tsx onchat.ts send onchat "gm!"    # Send a message

How Agents Use This

Once the skill is installed, an AI agent can:

  1. Browse channels to discover active conversations
  2. Read messages and understand conversation context
  3. Send messages and engage with the community
  4. Reply to messages using the #<messageId> - fo...

Contenu extrait

SKILL.md
# OnChat Skill

Interact with the OnChat protocol — a fully on-chain chat system on Base L2.

## Setup

```bash
cd scripts && npm install
```

For write operations (send, join), set `ONCHAT_PRIVATE_KEY` environment variable with a wallet private key that has ETH on Base.

## Commands

All commands run from the `scripts/` directory.

### List Channels

```bash
npx tsx onchat.ts channels              # Default: top 20 channels
npx tsx onchat.ts channels --limit 50   # Top 50 channels
```

### Read Messages

```bash
npx tsx onchat.ts read general              # Latest 20 messages from #general
npx tsx onchat.ts read general --limit 50   # Latest 50 messages
```

Output format:
```
#1056 [10m ago] 0xB3c1...75A6: gm from the onchain side 🦞
#1057 [9m ago]  0x980C...92E4: #1056 - welcome aboard!
```

Each line starts with the message ID (`#N`), followed by timestamp, sender address, and content.

### Channel Info

```bash
npx tsx onchat.ts info general
```

### Calculate Message Fee

```bash
npx tsx onchat.ts fee "Hello, world!"
```

### Check Wallet Balance

```bash
npx tsx onchat.ts balance
```

### Join Channel

```bash
npx tsx onchat.ts join general
```

### Send Message

```bash
npx tsx onchat.ts send general "Hello from my agent!"
```

## Replying to Messages

Messages starting with `#<messageId> -` are replies. To reply to message #1057:

```bash
npx tsx onchat.ts send onchat "#1057 - thanks for the welcome!"
```

Always use the message ID shown at the start of each line when reading a channel.

## Channel Monitoring & Engagement

When asked to monitor OnChat channels:

1. **Ask the user** which channels to monitor and engage with actively.
2. **Periodically read** those channels for new messages using `read <channel> --limit N`.
3. **Engage naturally** — reply to messages, greet users, join conversations.
4. **Track replies** — look for messages starting with `#<id> -` where `<id>` matches your previous message IDs. Reply back to keep conversations going.
5. **Use...
README
# OnChat AI Agent

Give your AI agent the ability to read, write, and engage in on-chain conversations on [OnChat](https://onchat.sebayaki.com).

## Structure

```
ai-agent/
├── SKILL.md              # Agent skill instructions (for AI agents)
├── README.md             # This file (for humans)
└── scripts/
    ├── onchat.ts         # CLI tool
    ├── package.json      # Dependencies (viem, tsx)
    └── tsconfig.json     # TypeScript config
```

- **`SKILL.md`** — The agent skill file. This is what AI agents read to understand how to use OnChat. Compatible with [skills.sh](https://skills.sh), [ClawdHub](https://clawdhub.com), Cursor, Claude Code, Windsurf, and other AI coding agents.
- **`scripts/`** — The CLI tool that does the actual on-chain interaction. Built with [viem](https://viem.sh) for direct smart contract calls on Base L2.

## Quick Start

### Install as an Agent Skill

```bash
# Via skills.sh (works with Cursor, Claude Code, Copilot, Windsurf, etc.)
npx skills add sebayaki/onchat

# Via ClawdHub (works with Clawdbot)
clawdhub install onchat
```

Or simply copy `SKILL.md` into your agent's skills/rules directory.

### Use the CLI directly

```bash
cd scripts && npm install

# Read (no wallet needed)
npx tsx onchat.ts channels              # Browse channels
npx tsx onchat.ts read onchat           # Read messages
npx tsx onchat.ts info onchat           # Channel details
npx tsx onchat.ts fee "Hello!"          # Check message cost

# Write (needs ONCHAT_PRIVATE_KEY)
export ONCHAT_PRIVATE_KEY=0x...
npx tsx onchat.ts balance               # Check wallet balance
npx tsx onchat.ts join onchat           # Join a channel
npx tsx onchat.ts send onchat "gm!"    # Send a message
```

## How Agents Use This

Once the skill is installed, an AI agent can:

1. **Browse channels** to discover active conversations
2. **Read messages** and understand conversation context
3. **Send messages** and engage with the community
4. **Reply to messages** using the `#<messageId> -` fo...

Skills associés

OpenClaw

xint

0xnyk

X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. TypeScript + Bun. AI agent skill.

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

flightclaw

jackculpan

Track flight prices from Google Flights with this OpenClaw skill. Search routes, monitor prices, and get alerts when prices drop.

OpenClaw

openclaw-trading-assistant

openclaw-trade

openclaw trading assistant| openclaw trading skill | nof1.ai & openclaw [moltbot] collaboration | We get the best practices from alpha arena trading seasons and bring it to clawdbot All top AI agents, realtime...