SIGN IN SIGN UP
reworkd / AgentGPT UNCLAIMED

🤖 Assemble, configure, and deploy autonomous AI Agents in your browser.

0 0 0 TypeScript
Refactor setup scripts for interactive setup and run, and update README (#406) * Added an interface for configuration, currently trying to get the api key entry part to return to itself when an invalid key is entered. I will add documentation soon * Created a setup script and a docker-compose route to make it easier for beginners. Currently only docker-compose is working, no errors. I will need to do more work on docker and local build tomorrow * Forgot to uncomment npm install from testing * changed line 'prepare': 'husky install' to 'prepare': 'npx husky install' because as of husky 5, husky commands must be run via npx * changed line "prepare": "husky install" to "prepare": "npx husky install" because as of husky 5, husky commands must be run via npx * working * input.mjs broken, moving to a different host for further troubleshooting * Changes Made - Removed setup.sh and replaced with init.sh and setup.mjs. - init.sh is a simple script to install necessary packages and prompt the user to set up the environment using setup.mjs. - setup.mjs is a comprehensive script that sets up the environment for the AgentGPT project. This script interacts with the user to collect necessary configuration details like the OpenAI API key, Docker/Node setup preference, and more. It generates the necessary environment variables, handles Docker setup if chosen, and also has logic to handle and retry on errors. * Updated readme to reflect changes * removed my settings.json * 💬 Update error messaging * 💬 Check if ENV exists * 💬 Validate against existing ENV * 💬 Update finalization commands * 💬 Fix schema * 💬 Fix execution * 💬 Revert next * 💬 Revert main * 💬 Add package json * 💬 Add package json * 💬 Manual * 🔌 Electrifying devX --------- Co-authored-by: Asim Shrestha <asim.shrestha@hotmail.com> Co-authored-by: jpducky <34105363+JPDucky@users.noreply.github.com~> Co-authored-by: awtkns <32209255+awtkns@users.noreply.github.com>
2023-05-27 01:40:09 -05:00
## AgentGPT CLI
AgentGPT CLI is a utility designed to streamline the setup process of your AgentGPT environment.
It uses Inquirer to interactively build up ENV values while also validating they are correct.
This was first created by @JPDucky on GitHub.
### Running the tool
```
// Running from the root of the project
./setup.sh
```
```
// Running from the cli directory
cd cli/
npm run start
```
### Updating ENV values
To update ENV values:
- Add a question to the list of questions in `index.js` for the ENV value
- Add a value in the `envDefinition` for the ENV value
- Add the ENV value to the `.env.example` in the root of the project