From 106552d15e777be8fd82a048faf2818582f6c9e9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 7 Oct 2025 15:47:08 +0000 Subject: [PATCH 1/3] Initial plan From a0095d7d09fa1b000749bb7b48f798676ea30cd0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 7 Oct 2025 15:51:28 +0000 Subject: [PATCH 2/3] Fix main.py to expose proper entry point function Co-authored-by: Copyxyzai <168319629+Copyxyzai@users.noreply.github.com> --- main.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 259c735be..24a44de00 100644 --- a/main.py +++ b/main.py @@ -5,7 +5,7 @@ from app.logger import logger -async def main(): +async def async_main(): # Parse command line arguments parser = argparse.ArgumentParser(description="Run Manus agent with a prompt") parser.add_argument( @@ -32,5 +32,10 @@ async def main(): await agent.cleanup() +def main(): + """Entry point for the openmanus console script.""" + asyncio.run(async_main()) + + if __name__ == "__main__": - asyncio.run(main()) + main() From 6a2f05d1c5dd218a25fb06e3c9c734b98d368a2a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 7 Oct 2025 15:54:19 +0000 Subject: [PATCH 3/3] Update README to document openmanus command Co-authored-by: Copyxyzai <168319629+Copyxyzai@users.noreply.github.com> --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 58d82ded4..7c946092b 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,12 @@ One line for run OpenManus: python main.py ``` +Or after installing the package, you can use the `openmanus` command: + +```bash +openmanus +``` + Then input your idea via terminal! For MCP tool version, you can run: