Skip to content

Feat(Agpt Platform Installer): Add initial setup scripts for linux and windows #9912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Bentlybro
Copy link
Member

This PR adds two setup scripts that will setup autogpt fully, it has a windows .bat and a linux/mac .sh script, for now they are placed in a new folder called "Installer"

Note, the installers are supposed to be run outside of the autogpt repo folder like Desktop/in a new empy folder because it will clone the repo into the current directory.

once fully setup i plan to make it so these commands can be run with the following commands

Linux/Mac

curl -s https://setup.agpt.co/install.sh | bash

Windows cmd/powershell

powershell -Command "iwr -Uri https://setup.agpt.co/install.bat -OutFile install.bat" && install.bat

Currently the commands above dont work but will later on!

Checklist 📋

For code changes:

  • I have clearly listed my changes in the PR description
  • I have made a test plan
  • I have tested my changes according to the test plan:
    • I have tested the linux install.sh on a ubuntu system and it setup the platform fully.
    • I have tested the windows install.bat on my windows system and it setup the platform fully.
    • I have tested on both OS's and checked with missing prerequisites to see if it shows the errors and it does

@Bentlybro Bentlybro requested a review from a team as a code owner May 6, 2025 16:23
@Bentlybro Bentlybro requested review from Pwuts and aarushik93 and removed request for a team May 6, 2025 16:23
@github-project-automation github-project-automation bot moved this to 🆕 Needs initial review in AutoGPT development kanban May 6, 2025
@github-actions github-actions bot added the platform/backend AutoGPT Platform - Back end label May 6, 2025
Copy link

netlify bot commented May 6, 2025

Deploy Preview for auto-gpt-docs-dev ready!

Name Link
🔨 Latest commit a629664
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs-dev/deploys/681a37719d4d600008d50edf
😎 Deploy Preview https://deploy-preview-9912--auto-gpt-docs-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the size/l label May 6, 2025
Copy link

deepsource-io bot commented May 6, 2025

Here's the code health analysis summary for commits 519ad94..a629664. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗
DeepSource Python LogoPython✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link

netlify bot commented May 6, 2025

Deploy Preview for auto-gpt-docs ready!

Name Link
🔨 Latest commit a629664
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/681a3771a93da2000885f07e
😎 Deploy Preview https://deploy-preview-9912--auto-gpt-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -0,0 +1,76 @@
# AutoGPT Platform Installers
Copy link
Member

@ntindle ntindle May 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this a docs page not a readme IMO. this can point to the docs page though. single source of truth

Copy link
Member

@ntindle ntindle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a great start. I'd love to see us extend this to support package managers etc later on but its a good place one

Comment on lines +15 to +47
where git >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo.
echo Error: Git is not installed. Please install Git and try again.
echo Visit https://git-scm.com/downloads for installation instructions.
echo Press Enter to exit...
pause >nul
exit /b 1
) else (
echo - Git is installed
)

:: Check if docker is installed
where docker >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo.
echo Error: Docker is not installed. Please install Docker and try again.
echo Visit https://docs.docker.com/get-docker/ for installation instructions.
echo Press Enter to exit...
pause >nul
exit /b 1
) else (
echo - Docker is installed
)

:: Check if docker is running
docker info >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo Docker is not running. Please start Docker Desktop and try again.
echo Press Enter to exit...
pause >nul
exit /b 1
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally we check all of these before exiting so they can install them all at once

Comment on lines +178 to +189
echo AutoGPT setup completed successfully!
echo -------------------------------------
echo Your backend services are running in Docker.
echo Your frontend application is running at http://localhost:3000
echo.
echo Visit http://localhost:3000 in your browser to access AutoGPT.
echo.
echo To stop the services, close the npm terminal window and run 'docker compose down' in the AutoGPT\autogpt_platform directory.
echo.
echo Press Enter to exit the script (this will NOT stop the services)...
pause >nul
exit /b 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check we can access this page and the backend's health check before saying it worked

fi

# Clean up temp files
rm -f "$backend_log" "$frontend_log"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we certain this will always work and never delete the wrong folder?

@github-project-automation github-project-automation bot moved this from 🆕 Needs initial review to 🚧 Needs work in AutoGPT development kanban May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/backend AutoGPT Platform - Back end size/l
Projects
Status: 🚧 Needs work
Development

Successfully merging this pull request may close these issues.

2 participants