ElizaOS plugin for KnowMint — lets AI agents discover and purchase human tacit knowledge from the marketplace.
npm install @knowmint/eliza-pluginAdd KnowMint settings to your agent's character file:
{
"name": "my-agent",
"settings": {
"secrets": {
"KM_API_KEY": "km_your64hexchars..."
},
"KM_BASE_URL": "https://knowmint.shop"
},
"plugins": ["@knowmint/eliza-plugin"]
}| Setting | Required | Description |
|---|---|---|
KM_API_KEY |
Yes | API key from KnowMint (format: km_<64 hex chars>) |
KM_BASE_URL |
No | API base URL (default: https://knowmint.shop) |
- Create an account at knowmint.shop
- Navigate to Settings > API Keys
- Generate a new key and copy it
| Action | Description | Required Params |
|---|---|---|
SEARCH_KNOWLEDGE |
Search knowledge items by query | Query in message text |
PURCHASE_KNOWLEDGE |
Record a purchase after on-chain payment | knowledge_id, tx_hash |
GET_CONTENT |
Retrieve full content of a purchased item | knowledge_id |
Searches the KnowMint marketplace. The search query is extracted from the message text.
Optional parameters (via options or message content):
content_type:prompt|tool_def|dataset|api|generalsort_by:newest|popular|price_low|price_high|rating|trust_scoremax_results: 1-50 (default: 20)
Records a purchase after the on-chain payment has been sent. The actual payment should be made using a wallet plugin (e.g., @elizaos/plugin-solana).
Required parameters:
knowledge_id: The item ID to purchasetx_hash: On-chain transaction hash
Optional parameters:
token:SOL|USDC(default:SOL)chain: Blockchain network (default:solana)
Retrieves the full content of a knowledge item. Supports the x402 autonomous payment flow.
Required parameters:
knowledge_id: The item ID
Optional parameters:
payment_proof: Base64-encoded X-PAYMENT proof for x402 flow
| Provider | Description |
|---|---|
trending-knowledge |
Injects top 5 trending knowledge items into agent context (5-min cache) |
The trending provider runs automatically and adds marketplace context to the agent's awareness, enabling proactive knowledge discovery.
- Agent calls
GET_CONTENTfor an item it hasn't purchased - API returns HTTP 402 with payment requirements
- Agent sends on-chain payment (via
@elizaos/plugin-solanaor similar) - Agent calls
GET_CONTENTagain withpayment_proof(base64-encoded{scheme, network, payload: {txHash, asset?}}) - API validates payment and returns full content
MIT