Installation

1. Clone the Repository

To get started with BlinxAI, you need to clone the official repository from GitHub:

git clone https://github.com/useBlinxAi/blinx-ai-cli.git
cd blinx-ai-cli

This command downloads the project files and navigates into the project directory.

2. Install Dependencies

Next, install all necessary dependencies required for BlinxAI to function correctly:

npm install

This command fetches and installs all required Node.js packages.

3. Set Up Environment Variables

BlinxAI requires certain environment variables to function. Create a .env file in the root directory and add the following variables:

PRIVATE_KEYPAIR=<YOUR_PRIVATE_KEYPAIR>
OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>
RPC_ENDPOINT=https://api.mainnet-beta.solana.com
BITQUERY_API_KEY=<YOUR_BITQUERY_API_KEY>
  • PRIVATE_KEYPAIR: Your blockchain private key pair for transaction signing.

  • OPENAI_API_KEY: Your API key to interact with OpenAI services.

  • RPC_ENDPOINT: The Solana RPC endpoint for blockchain interactions.

  • BITQUERY_API_KEY: Your API key for Bitquery to fetch blockchain data.

4. Build the Agent

Once the environment variables are set up, build the BlinxAI agent using:

This compiles the necessary code and prepares the agent for execution.

5. Run the Agent

Finally, start the BlinxAI agent by running:

This launches the AI agent and allows it to interact with the blockchain and other services.

By following these steps, you will have a fully functional BlinxAI agent running and ready for use.

Last updated