Minos SDK
The Minos Agent Kit provides a robust set of APIs and tools to interact with the platform’s core components.
Structure
minos-ai/
├── packages/
│ ├── contracts/ # Solana smart contracts in Rust
│ ├── ai-models/ # ML models in Python
│ ├── indexer/ # Blockchain indexer service
│ └── backend/ # API and services
├── sdk/ # TypeScript SDK for integrations
├── scripts/ # Development and deployment scripts
└── docker/ # Docker configurationsGetting Started
Let's start by setting up a basic AI agent using Minos Agent Kit that can perform actions on the Solana blockchain and that we can chat with:
Install dependencies
A modern IDE is recommended for this guide. We will use Cursor for this example which has integrated AI features and can help you with any errors you may encounter.
You will need to have node with version 23.x.x installed. Open an empty folder using vscode or cursor and run the following command in the terminal:
This guide requires Node.js version `23.x.x`. Install it using [nvm](https://github.com/nvm-sh/nvm):
Your IDE should setup the package.json file for you. If not, this is how it should look like:
Configure environment
Create a .env file in the root of the project and add the following:
Note that we encode the private key to base58 before we parse it into the solana agent constructor in the script so you can just put the byte array [34,2,34...] here in the env file.
You can create a key using the following command:
And copy the contents into your .env file for SOLANA_PRIVATE_KEY.
The OPENAI_API_KEY is the key for the OpenAI API and you can find it in the OpenAI platform
The RPC url we just leave at devnet for now.
Create the agent script
Create a new file called agent.ts with the following content:
Run the agent
You can run this script using the following command:
This will start a simple chat with the agent.
Test basic functionality
You can now ask it to show you your solana balance and ask it to request some devnet sol:
If the devnet faucet is empty you can use the web faucet instead and paste in your solana address.
Create an NFT collection
Next ask the agent:
Mint an NFT
After the collection is created, mint an NFT:
This will mint you an NFT with the name Train1 and an image of a train.
You can also use any different metadata for your NFT which you can upload using pinata or any other storage provider. You should end up with something like this devnet train nft
Where to go from here?
You can now for example import the private key into your browser extension wallet to see the NFT.
You can ask the agent to show you all your NFTs. You will notice you will get an error for this action. This is because the default action to request assets uses the Helius Asset api to request assets so for that you would need to add a Helius API key to your
.envfile and pass it into the agent. pass it into the agent.
You can now start writing your own actions
Last updated
