Skip to main content

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.

Metadata

Release files for nearai 0.1.19

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nearai 0.1.19
File Size Uploaded
nearai-0.1.19.tar.gz 6.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for nearai 0.1.19
File Interpreter ABI Platform
nearai-0.1.19-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 MB

Release files / nearai-0.1.19.tar.gz

Download URL nearai-0.1.19.tar.gz
Size 6.9 MB
Tags Source
SHA-256 checksum
How to use checksums
bf46ac736ecd010110d73affc3b26388529b19c49c3883e6c6adaa0885a25e08
BLAKE2b-256 checksum
How to use checksums
c11724a658c2ca3da40d4a0e5deda381cf05122e528d474217cdf64984e4a090
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release files / nearai-0.1.19-py3-none-any.whl

Download URL nearai-0.1.19-py3-none-any.whl
Size 248.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
201a3885463412d76bb54e6e7b32e8743306bd4683dbb31e3f2018509924fc65
BLAKE2b-256 checksum
How to use checksums
bf171f22c3c236dd482712bab229b7578180fff3d64fca934215a753b12130d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release history Release notifications | RSS feed

This release

0.1.19 This release

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.9

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page