Package: shell2-cli
GeneralTheshell2platform provides AI-powered, unrestricted code + data sandboxes with high CPU & RAM, with minimal configuration. A mix between Code Interpreter & Replitshell2-cliis the official CLI for theshell2.raiden.aiplatform - works acrossLinux, OS X, WindowsIt allows you to create live sessions, including multiplayer with other users, and run sequences, directly from your terminal.It also allows you to sync your local files directly with the shell2 sandbox, and receive any created file in real time.In addition to voice input for sessions (experimental)InstallationInstall the CLI as followspip install -U shell2-cliif you  getERROR: Could not build wheels for PyAudio, which is required to install pyproject.toml-based projects, make sure you install pyaudio dependencies first:on linux,apt install python3-pyaudioon OS X,brew install portaudioif you do not want to use the voice input feature, or if there are audio configuration errors, install a previous version of the cli without voice input-pip install shell2-cli==0.105Setup your shell2 API key by running the command from the terminalshell2--key"YOUR_SHELL2_API_KEY"(your API key is under settings inshell2.raiden.ai)That's all.note: before you useshell2, make sure you have setup your API keys under settings inshell2.raiden.ai(such asOpenAIif you selectGPTas a model, or other providers likeReplicate...) - your keys are safely stored and wrapped in 2 encryption layersUsageThe CLI can be used in 2 ways1 . Interactive CLI, which is the easiest way, and most comprehensiveSimply run the following in your terminal (from the folder in which generated data and files will be downloaded) and follow alongshell22 . Using one-line commands described belowCreate a new sessionNavigate to the folder in which you would like to start - where data and files generated in theshell2sandbox will be downloaded in real time - and run the following in your terminalshell2--sessionThe terminal will enter live mode and you'll be able to interact with the sandbox in real time(and with other users in the multiplayer case)You can add the following options--timeout TIMEOUT_IN_SECONDS: Max timeout for your session (defaults to 600 seconds)--voice: Use voice input to send messages (experimental)--multiplayer: Enable multiplayer in your created session. You will be provided with a shareable url for the multiplayer session.--nosync: By default, the files in your current folder will be uploaded to the session you are trying to create or join (< if 500 Mb total). Use this option to disable it.exampleshell2--session--timeout500--multiplayerJoin a multiplayer sessionUsers that create multiplayer sessions(or enable it)receive a shareable URL.You can use that url to join a multiplayer session from your terminal, like thisshell2--session--url"https://shell2.raiden.ai/view/session/example@raiden.ai/945c846a-5e25-455f-09ba-7e39a5f20d11"The terminal will enter live mode and you'll be able to interact with the sandbox in real time.You can add the following options when joining a session--voice: Use voice input to send messages (experimental)--nosync: By default, the files in your current folder will be uploaded to the session you are trying to create or join (< if 500 Mb total). Use this option to disable it.Run a sequenceSequences are a predefined list of messages that run consecutively.To run a sequence:Create asequence.txtfile in your current folder.Write a list of steps in the text file, separated by an empty line.All the shell2 commands ( described inshell2.raiden.aidocs, and better explained in the webapp sessions ), such as/doc,/web,/run,/shell, etc... are available here.Run this from your terminal (from the same folder)shell2--sequenceoptional- you can add these options to the command:--timeout TIMEOUT_IN_SECONDS: Max timeout for your sequence (defaults to 600 seconds)--webhook "WEBHOOK_URL": Webhook URL to send sequence execution data after completionThe terminal will display updates in real time until the sequence closes.Any generated files will be created in your current folder.Basic Sequence ExampleA simple example ofsequence.txtwhich would generate a png file in your current folder :/dochttps://raw.githubusercontent.com/raidendotai/shell2-example-data/main/mlb_2012.csv

plotteamspayrollsvswinningsinapngfileSequences ExamplesFiles sync + sequences = MagicSince files in your current folder are automatically uploaded to the sandbox(if total < 500 Mb)when running a sequence, you can take advantage of the feature like thisexample ofsequence.txt, in the same folder asgroup_photo.jpg:extractfacesfromgroup_photo.jpg,saveeachfaceinfileundersubfoldercalledextracted_faceswould generate the extracted_faces/... images directly in your local folderexample ofsequence.txt, in the same folder asmy_paper.pdfandfriend_paper.pdf:/docmy_paper.pdfextractthefindingsofthispaper/docfriend_paper.pdfextractresearchfindingsfromthisdocument/mfromdatayouextracted,createacsvfilewithasinglerow"findings"-max15wordsperentrywould generate a csv file in your local folderexample ofsequence.txt, in the same folder asmy_audio.mp3:extractthefirst10secondsofmy_audio.mp3andsaveitinm4aformatwould generate a new m4a in your local folderfor any questions or enquiries, feel free to contact via email or on twitter@n_raidenai