General Introduction
GaiaNet-AI/gaianet-node is an open source project that allows users to quickly install the default node software stack with a single command on Mac, Linux or Windows WSL. Users can initialize the node, customize its configuration, download model files and vector database files, and in turn launch the AI agent node. The project aims to provide a flexible and easy-to-use platform for users to run and manage their own AI agent services.
The reason for collecting this item is that ollama cannot be configured directly in Cursor unless the agent is added on top of ollama (Ways to add proxies), or use a more localized approachcurxyIt's still a bit of a pain in the ass.
Here I use yi-coder to run it locally with only 3 commands:
1.curl -sSfL 'https://github.com/GaiaNet-AI/gaianet-node/releases/latest/download/install.sh' | bash
2. gaianet init --config https://raw.githubusercontent.com/GaiaNet-AI/node-configs/main/yi-coder-9b-chat/config.json
3. gaianet start
Then you get an HTTPS URL like this https://NODE-ID.us.gaianet.network.
In the meantime, you can open your browser for `http://localhost:8080` to ask questions about programming.
Function List
- Quick Installation of Node Software Stacks
- Initialize nodes and download necessary model files and vector database files
- Customize the configuration file to suit different usage scenarios
- Starting and stopping AI agent nodes
- Multi-language support, including Chinese, Japanese, Russian, etc.
Using Help
Installation process
- Download and run the installation script: Enter the following command in the terminal to download and run the installation script:
curl -sSfL https://github.com/GaiaNet-AI/gaianet-node/releases/latest/download/install.sh | bash
This command will default the installation to the
$HOME/gaianet
directory. You can also choose to install to other directories:curl -sSfL https://github.com/GaiaNet-AI/gaianet-node/releases/latest/download/install.sh | bash -s -- ---base $HOME/gaianet.alt
- Initializing nodes: Run the following command to initialize the node:
gaianet init
The command will be based on the
$HOME/gaianet/config.json
file initializes the node. You can use some preset configurations, for example:gaianet init --config https://raw.githubusercontent.com/GaiaNet-AI/node-configs/main/llama-3-8b-instruct_london/config.json
To see a list of preset configurations, you can run:
gaianet init --help
- boot node: Run the following command to start the node:
gaianet start
When launched, the script will print the official node address on the console. You can open that URL in a browser to view node information and interact with the AI agent on the node.
- stopping node: Run the following command to stop the node:
gaianet stop
Guidelines for use
- configuration file: You can edit the
$HOME/gaianet/config.json
File custom node configuration. This file contains information such as the paths to the model file and the vector database file. - Multi-language support: The project provides multi-language support, you can find it in the
README
Instructions in Chinese, Japanese, Russian and many other languages are found in the document. - node management: With command-line tools, you can easily manage node startups, stops, and configuration updates.