NEAR AI
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
- Python 3.11 (3.12+ currently not supported)
- Git
- Docker (for local agent testing)
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
- Create an agent:
nearai agent create
- Run agent locally:
nearai agent interactive
- 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! 🚀
- 🐛 Report bugs and suggest features
- 💻 Submit pull requests
- 📖 Improve documentation
- 🤝 Help other users in the community
- 🌟 Star our repository
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nearai-0.1.19.tar.gz | 6.9 MB | Without provenance | Details for nearai-0.1.19.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nearai-0.1.19-py3-none-any.whl | Python 3 | none | any | Details for nearai-0.1.19-py3-none-any.whl |
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
|
Security for nearai 0.1.19
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.