Skip to main content

Near AI CLI

Project description

NEAR AI

License: MIT Build Status Release PRs Welcome Telegram

NEAR AI is a distributed system for building, deploying, and managing AI agents with the goal of making open source and user-owned AGI.

NEAR AI Components

  • NEAR AI Hub: Central hub for model serving, agent registry, and running agents
  • TEE Runner: Confidential execution environment for NEAR AI agents and inference
  • AWS Runner: Lambda-based execution environment for NEAR AI agents
  • Agent System: Build and run AI agents with built-in tools and environment isolation
  • Worker System: Distributed job execution and scheduling
  • Model Fine-tuning: Support for fine-tuning LLMs

Directory Structure

nearai/
├── aws_runner/          # Lambda-based AI agent execution
│   ├── Dockerfile         # Container for running agents
│   └── frameworks/        # Framework-specific requirements
├── hub/                 # Central hub for registering and running agents and models
│   ├── alembic/           # Database migrations
│   └── api/               # API endpoints
├── nearai/              # Core library
│   ├── agents/            # Agent system implementation
│   │   ├── agent.py         # Base agent class
│   │   └── environment.py   # Agent environment
│   ├── cli.py             # Command-line interface
│   └── config.py          # Configuration management
├── worker/              # Distributed job execution
├── etc/                 # Configuration and setup
│   ├── finetune/          # Model fine-tuning configs
│   └── hosts_lambda.txt   # Cluster configuration
└── e2e/                 # End-to-end tests

Agent Creation Quick Start

Requirements


Installation

pip
python3 -m pip install nearai

Verify installation:

nearai version
local
git clone git@github.com:nearai/nearai.git && cd nearai && ./install.sh

Or, to install to a virtual environment with poetry:

python3 -m uv sync
uv run nearai version

Or you can use pip:

python3 -m pip install -e .

Verify installation:

nearai version

Log In

Login to NEAR AI with your NEAR Account. If you don't have one, we recommend creating a free account with Meteor Wallet.

nearai login 

Useful Commands

  1. Create an agent:
nearai agent create
  1. Run agent locally:
nearai agent interactive
  1. Deploy to NEAR AI Developer Hub:
nearai registry upload <path-to-agent>

Documentation

Updating

cd nearai
git pull
python3 -m pip install -e .  # If dependencies changed

Contributing

Want to help shape the future of AI? Join our community and contribute! 🚀

Check out our contributing guide to get started.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nearai-0.1.19.tar.gz (6.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nearai-0.1.19-py3-none-any.whl (248.8 kB view details)

Uploaded Python 3

File details

Details for the file nearai-0.1.19.tar.gz.

File metadata

  • Download URL: nearai-0.1.19.tar.gz
  • Upload date:
  • Size: 6.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for nearai-0.1.19.tar.gz
Algorithm Hash digest
SHA256 bf46ac736ecd010110d73affc3b26388529b19c49c3883e6c6adaa0885a25e08
MD5 d0ee2dff3d742e565d731453e065ad7b
BLAKE2b-256 c11724a658c2ca3da40d4a0e5deda381cf05122e528d474217cdf64984e4a090

See more details on using hashes here.

File details

Details for the file nearai-0.1.19-py3-none-any.whl.

File metadata

  • Download URL: nearai-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 248.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for nearai-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 201a3885463412d76bb54e6e7b32e8743306bd4683dbb31e3f2018509924fc65
MD5 d9bc24b6649f61964fbf711191f16299
BLAKE2b-256 bf171f22c3c236dd482712bab229b7578180fff3d64fca934215a753b12130d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page