Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Basic Join Example

The absolute minimum — join an X Space with an AI agent in ~15 lines of code.

Quickstart

  1. Install dependencies:

    npm install
  2. Copy .env.example to .env and fill in your credentials:

    cp .env.example .env
  3. Run the agent:

    npm start https://x.com/i/spaces/1eaKbrPAqbwKX

What It Does

  • Joins the specified X Space as a speaker
  • Listens to other speakers via speech-to-text
  • Responds using GPT-4o-mini with text-to-speech
  • Prints all transcriptions and agent responses to the console

Configuration

Edit index.ts to customize:

  • ai.model — Change the LLM model
  • ai.systemPrompt — Change the agent's personality
  • ai.provider — Switch to 'claude' or 'groq'