NEAR AI CLI¶
NEAR AI CLI allows you to create and deploy agents, train and test models, and more!
Requirements¶
- Python 3.9 - 3.11 (3.12 - 3.13 is NOT supported)
- NEAR Account
Additionally, we recommend creating a virtual environment to avoid conflicts with other Python packages.
Installing NEAR AI CLI¶
Python version
NEAR AI requires python 3.9 - 3.11
. We recommend you to create a virtual environment to avoid conflicts with other Python packages or globally installing dependencies if installing locally w/ repo.
Login to NEAR AI¶
To create a new agent, first login with a NEAR Account. If you don't have one, we recommend creating a free account with Meteor Wallet:
Example:
$> nearai login
Please visit the following URL to complete the login process: https://auth.near.ai?message=Welcome+to+NEAR+AI&nonce=<xyzxyzxyzxyzx>&recipient=ai.near&callbackUrl=http%3A%2F%2Flocalhost%3A63130%2Fcapture
After successfully logging in, you will see a confirmation screen. Close it and return to your terminal.
Other Login Methods
If you have already logged in on near-cli
, you know your account's private key, or you have the credentials on another device, you can use the following commands to login:
Next Steps¶
That's it! Head over to the Agent Quickstart to get started creating your first agent! 🚀