AgentGPT icon indicating copy to clipboard operation
AgentGPT copied to clipboard

Allow for local execution of shell commands as a specific user

Open JackPala opened this issue 1 year ago • 1 comments

⚠️ Please check that this feature request hasn't been suggested before.

  • [X] I searched previous Ideas in Discussions didn't find any similar feature requests.
  • [X] I searched previous Issues didn't find any similar feature requests.

🔖 Feature description

Allow for local execution of shell commands as a specific user - This would allow AgentGPT to become a powerful alternative to Ansible in test environments that operates over written word.

✔️ Solution

As someone who manages hundreds of servers, I would love to see the ability for AI to automate the management of such things (Of course - I'd only run in my homelab until the tech is mature).

It would be amazing to see an Agent connect to a system Via SSH with a stored key in a keystore folder, execute, and debug commands. Develop and deploy python scripts, websites, projects - that were previously done by humans. It's possible that given this ability, an LLM could potentially build and deploy websites, create server infra, and handle security updates. Of course it would be advisable to only use such a system in a test instance due to its potentially destructive nature.

❓ Alternatives

Not having shell commands due to the risk of unintended things occuring if the AI Hallucinates

📝 Additional Context

No response

Acknowledgements

  • [X] My issue title is concise, descriptive, and in title casing.
  • [X] I have searched the existing issues to make sure this feature has not been requested yet.
  • [X] I have provided enough information for the maintainers to understand and evaluate this request.

JackPala avatar Aug 05 '23 15:08 JackPala

Do you also mean connection to a VM or Docker for it as a "workplace". Had the same idea if that's so.

Something similar to Termux could be cool but for PC and limited accessing a single folder or file with limitable size with a virtual environment.

jerrecode avatar Sep 20 '23 11:09 jerrecode