Skip to main content

Scios unified CLI — dev environment, deployment, database, logs, and more

Project description

Scios CLI 🚀

The local workspace engine bridging your terminal natively to the Scios Cloud backend.

Instead of hunting for logs scattered across web panels or modifying long agent prompts in narrow browser textboxes, you can now push a button on the Web UI to magically download the entire codebase to your machine and hot-reload changes as you type!

Overview

By installing this lightweight Python package, whenever you click the "Open in Antigravity" button in Scios Web:

  1. Your browser will spawn an interactive Terminal securely connected to your session.
  2. The entire project is downloaded and formatted into a structured local directory (sync_<idea_id>/agents/).
  3. You can use native VS Code, your own linter, and formatting extensions to iterate on the Agent architecture.
  4. When you press CMD+S locally, the scios-cli instantly pushes the diff back to the live Cloud instances seamlessly!

💻 Installation

Scios CLI requires Python 3.9+ and can be installed in one command:

pip install scios-cli

Note: If scios-init / scios-sync aren't found after install (common on Windows where Python's Scripts folder isn't in PATH), use the module form instead:

# macOS / Linux
python3 -m scios_cli init    # same as scios-init
python3 -m scios_cli sync    # same as scios-sync

# Windows
python -m scios_cli init
python -m scios_cli sync

Install Deep Link Handler (Critical) 🔗

Web Browsers strictly sandbox their environment for security. To enable true one-click magical execution without copying and pasting terminal commands, you must register the native OS Protocol handler (scios://).

Run this command once anywhere in your terminal after installation:

scios-init
# or: python3 -m scios_cli init

This is fully cross-platform and will instantly register exactly what your OS needs:

  • 🍎 macOS: An AppleScript wrapper app is loaded to Launch Services.
  • 🐧 Linux: An .desktop MimeType handler explicitly set.
  • 🪟 Windows: The protocol hooks injected correctly into HKEY_CURRENT_USER.

🏃 Usage & Workflow

1. Activating the Live Sync

  1. In the Scios Web App, navigate to any specific Idea or Workflow node.
  2. Next to the "Run Pipeline" button in the header, click Open in Antigravity.
  3. A popup will ask you "Allow this site to open SciosSync?" — Click Open.

Your system Terminal will spawn, authenticate with your specific user session automatically behind the scenes, and print:

🔗 Received Deep Link: scios://sync?id=...
✨ Successfully pulled Scios project down over API.
👀 Watching /sync_1234abcd/agents for live agent code changes... (Press Ctrl+C to exit)

2. Modifying Code Locally

Your OS will now have a /sync_<idea_id> directory precisely at the root of where your terminal spawned. Simply drag that folder right into Jetski:

  • Tweak the pandas logic, alter an LLM system prompt, or build an entire new reasoning strategy in agents/MyAgent.py.
  • Hit Save: Your terminal will blink immediately: ✅ Successfully updated agent code over API!

3. Remote Triggering (--local)

If you don't want to use the web application to trigger an execution loop and you just want to launch your new logic:

scios-sync 1234-5678-your-idea-id --endpoint "https://api.scios.ai/v1" --token "eyJh..." --local

Passing --local directly triggers the Cloud APIs to launch that pipeline on the heavy GPUs immediately without ever having to touch a web button.

4. Record the Houdini app while it runs (--record-video)

When your workflow drives a local application — for example controlling Houdini through the Houdini MCP — you can have scios-sync screen-record the desktop locally for the entire execution, producing a single .mp4 of the run.

scios-sync <idea_id> \
  --endpoint "https://api.scios.ai/v1" \
  --token "eyJh..." \
  --local \
  --record-video

Behaviour:

  1. Starts an ffmpeg screen capture before posting the execution (no missed frames).
  2. Triggers the workflow as usual and prints the execution_id.
  3. Polls GET /workflows/executions/{execution_id} every --poll-interval seconds (default 2s), printing each status transition.
  4. When the execution reaches a terminal status (completed, failed, cancelled, error, stopped), sends q to ffmpeg so it finalises the mp4 cleanly.
  5. Renames the file to recordings/execution_<execution_id>.mp4 next to your current directory (or writes to --video-out if you passed it).

Requirements:

  • ffmpeg on PATH (brew install ffmpeg / apt install ffmpeg).
  • macOS: grant Terminal (or your shell) Screen Recording permission under System Settings → Privacy & Security.
  • Linux: an X11 (or XWayland) display reachable at :0.0.

Useful flags:

Flag Default Notes
--video-fps 24 Frame rate of the capture.
--video-out PATH auto Override the mp4 output path.
--ffmpeg-input "..." platform default Full ffmpeg input args, e.g. "-f avfoundation -framerate 24 -i 2:none" to record a specific display. List devices on macOS with ffmpeg -f avfoundation -list_devices true -i "".
--poll-interval 2.0 Seconds between execution-status polls.
--max-wait 3600 Hard cap on the recording length in seconds.

Make sure the Houdini app + the houdini_addon.py MCP listener (port 9876) are already running before you fire the CLI — the Scios agents will reach into Houdini over MCP while the recorder is rolling.


Manual Fallback Commands

If for some reason your organization blocks Deep Links, the "Open in Antigravity" button also copies a fail-safe execution string to your OS Clipboard:

scios-sync <idea_id> --endpoint "..." --token "..."

You can simply paste this string straight into your terminal after installing the pip package to achieve exact feature parity!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scios_cli-0.3.1.tar.gz (118.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scios_cli-0.3.1-py3-none-any.whl (136.5 kB view details)

Uploaded Python 3

File details

Details for the file scios_cli-0.3.1.tar.gz.

File metadata

  • Download URL: scios_cli-0.3.1.tar.gz
  • Upload date:
  • Size: 118.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for scios_cli-0.3.1.tar.gz
Algorithm Hash digest
SHA256 33cc33b0c70e061559bedaa1fa740d2c7ec7c813b3939bb9c7579d0125c96081
MD5 ccbac88cf22e1150e3352c391d51a4d8
BLAKE2b-256 b3f21ef4fb8ef653a41bafe198c8650cc400b297d3cf2a84f521b984c0b12635

See more details on using hashes here.

File details

Details for the file scios_cli-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: scios_cli-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 136.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for scios_cli-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1803aca5b7ae908a7f51287501cfb493d508b88e4e1bb0e686183005cd89e96
MD5 2a0685a9066e848bd1fbdd071ee62434
BLAKE2b-256 f9ec273b714fb7861f1c35aa0d30cf258c9ab74306059b2dd01165d02cf6e233

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page