Executing Scripts
Run skill scripts in the cloud or locally — your agent handles the details.
Two Ways to Run Scripts
When a skill has scripts, your agent can run them in the cloud or download and execute them on your machine. Each has trade-offs.
Cloud Execution
RecommendedScripts run in an isolated cloud sandbox. Faster, safer, and no local setup required. Dependencies are pre-installed automatically.
Local Execution
FreeYour agent downloads the script and runs it on your machine. Free, but requires local dependencies and runs with your system permissions.
When to choose cloud vs. local
Cloud Session Options
Cloud scripts run in isolated sandboxes with two session lengths. Your agent picks the right one based on the task.
| 5-Minute Session | 30-Minute Session | |
|---|---|---|
| Cost | Lower credits | Higher credits |
| Timeout | 5 minutes of inactivity | 30 minutes of inactivity |
| Best for | Quick tasks: file conversion, formatting, simple analysis | Heavy processing: large datasets, multi-step pipelines, ML tasks |
| Default? | Yes — recommended for most tasks | Only when needed |
Real-World Examples
Just describe what you need done. Your agent finds the right skill, runs the script, and returns the results.
API Keys & Credentials
Some skills need third-party API keys to work — for example, a skill that generates images might need a Gemini or OpenAI key. Your agent will tell you if a credential is missing and what's needed.
Where to add credentials
When Things Go Wrong
If a script fails, your agent will show you the error and suggest next steps. Common issues:
| Issue | What happens | What to do |
|---|---|---|
| Missing credential | Script can't access a required API | Add the key in Account Settings → Credentials |
| Script timeout | Task took longer than session allows | Ask your agent to use a 30-minute session |
| Script error | Bug in the script itself | Your agent shows the error — try different input or a different skill |
| Insufficient credits | Not enough credits for cloud execution | Top up credits or run locally for free |