Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.03 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.03 KB

nearai-starter

NEAR AI Starter

Open in Gitpod

Install

# Install nearai CLI. Recommend to use python 3.11
pip install nearai

# Show nearai CLI version
nearai version

Login

# Sign login message with your NEAR account
# The login info will be available under ~/.nearai/registry/config.json
nearai login

# Set the `NEAR_ACCOUNT` env
NEAR_ACCOUNT=<your-near-account>  # e.g. alice.near

Clone the repo

git clone https://github.com/think-in-universe/nearai-starter
cd nearai-starter

# Rename the folder ncd-cn.near to your NEAR account
mv ncd-cn.near $NEAR_ACCOUNT

Deploy agent

After modifying agent.py and metadata.json under $NEAR_ACCOUNT/einstein, try to deploy your agent code.

# Deploy agent metadata and code to registry
nearai registry upload $NEAR_ACCOUNT/einstein

# Open the agent on NEAR AI
open https://app.near.ai/agents/$NEAR_ACCOUNT/einstein