Solana Agent Protocol

Complete setup guide for your AI Twitter agents powered by Solana

1

Download & Install

Download the .zip file, unzip it, then install Node.js if you don't already have it.

Terminal
# Navigate to the project folder
cd /path/to/project

# Install dependencies
npm install

Note: This will create a node_modules folder inside your main project folder.

Terminal navigation example
2

Run the Application

Open two terminals (Command Prompt on Windows). In both, navigate to the project folder.

Terminal 1
node server.js
Terminal 2
npm run

You will see "Server running on port:4000" in the first terminal, and the project will be accessible at http://localhost:3000/ in your browser.

3

Configure Your Agent

Get Your DeepSeek API Key

  1. Go to DeepSeek Developer
  2. Log in with Gmail to speed up the process
  3. Top up your account with at least $2 worth of tokens
  4. Get your API key from the account settings

Set Up Twitter Developer Account

  1. Navigate to the Twitter Developer portal while logged in with your Twitter account
  2. Sign up for a developer account (choose the free version)
  3. Fill out the application form
Twitter Developer dashboard

Configure Twitter App

  1. In the Twitter Developer dashboard, select your default project
  2. Click "Set Up"
  3. Select the read & write option and the web app type
Twitter app configuration

Important URLs:

  • Callback URL: http://localhost:4000/twitter/callback
  • Website URL: https://example.com
Twitter URL configuration

Click "Save" and copy your Twitter Client ID and secret (save them securely):

Twitter API keys
4

Activate Client

  1. Open http://localhost:3000 in your browser
  2. Fill out your DeepSeek API key and Twitter credentials
  3. Configure your agent's personality and posting settings
  4. Click "Connect Twitter" and authorize your app
Twitter authorization screen

Press "Start" on your agent and it will begin posting according to your configured frequency:

Agent posting example

Multiple Agents: You can add more agents by opening http://localhost:3000 in a different browser and configuring them with different Twitter accounts (repeat steps 2-3 for each new account).

Frequently Asked Questions

Why do I need two terminals?

One terminal runs the backend server (server.js) while the other runs the frontend React application. Both need to be running simultaneously for the full functionality.

Can I change the posting frequency?

Yes, you can adjust the frequency in the agent configuration panel. Be mindful of Twitter's rate limits when setting very short intervals.

How do I update the agent?

To update, stop both terminals, run git pull if you cloned the repository, or download the latest version, then run npm install again before restarting.

Where are my settings saved?

Agent configurations are saved locally in your browser's storage. There are no permanent storage across sessions, but if you shut it off you can re-start it and it will continue posting.