Guides
Setup locally
Documentation guides to setup locally
How to Setup Locally
To set up the Sui Agent Kit on your local machine, you’ll need to clone the repository, install the required dependencies, configure environment variables, and build the project. Follow the steps below to begin.
Prerequisites
- Node: Ensure you have Node version 23.x or higher installed. You can download it from Node Official Website.
- Package Manager: Node’s package manager comes bundled with Node. Verify installation by running
npm -v
. - Git: Ensure Git is installed and configured. Download from Git Official Website.
Step-by-Step
- Clone the Repository
- Navigate to the Project Directory
- Install Dependencies
- Configure Environment Variables
Create a
.env
file in the project’s root directory to securely store your environment variables. Ensure the file includes the following variables:
OPENAI_API_KEY: Your OpenAI API key for generating images and interacting with OpenAI services.
RPC_URL: Your RPC_URL for Sui blockchain interactions.
SUI_PRIVATE_KEY: Your Sui wallet’s private key.
Note: Ensure that the .env
file is added to .gitignore
to prevent exposing sensitive information.
5. Build the Project
This will generate the compiled files in the dist/
directory.
6. Generate Documentation (Optional)
The documentation will be available in the docs/ directory.