Skip to content

Nostr Copilot is a framework that integrates the Nostr protocol, artificial intelligence (AI), and the Bitcoin ecosystem, connecting these three systems into one cohesive platform

License

Notifications You must be signed in to change notification settings

AI-Robotic-Labs/nostr-copilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Nostr Copilot 🤖🟣

Nostr Copilot is a framework that integrates the Nostr protocol, artificial intelligence (AI), and the Bitcoin ecosystem, connecting these three systems into one cohesive platform.

How It Works

  • The user creates an nsec (Nostr private key) and selects an LLM (Large Language Model) such as OpenAI, Mistral, DeepSeek, etc.
  • The user then adds an API key locally using a .env file or via a third-party server, such as AWS.
  • Once configured, the user has a fully functional AI Agent for Nostr.

Default Options

  • NIP-05 verification
  • Lightning Network address
  • Liquid Network address

Agent example

{
  "nsec": "nsec1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "relay": "wss://relay.nostr.example.com",
  "ai_agent": {
    "model": "mistral-7b",
    "provider": "xAI",
    "description": "A lightweight AI model optimized for Nostr interactions.",
    "prompt": "You are a helpful AI assistant integrated with Nostr. Your role is to assist users in generating posts, analyzing Nostr events, and providing insights about Bitcoin and Lightning transactions. Respond concisely, use a friendly tone, and prioritize privacy and decentralization in your advice."
  },
  "api_key": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "options": {
    "nip05": "user@domain.com",
    "lightning_address": "user@ln.example.com",
    "liquid_address": "liquid1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "enabled_features": [
      "post_generation",
      "content_moderation",
      "bitcoin_tx_monitoring"
    ]
  },
  "metadata": {
    "version": "1.0.0",
    "created_at": "2025-03-06T12:00:00Z",
    "updated_at": "2025-03-06T12:00:00Z",
    "owner": "npub1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  }
}

Roadmap

  • Demo implementation

About

Nostr Copilot is a framework that integrates the Nostr protocol, artificial intelligence (AI), and the Bitcoin ecosystem, connecting these three systems into one cohesive platform

Topics

Resources

License

Stars

Watchers

Forks