Commit Graph

274 Commits

Author SHA1 Message Date
f-trycua 73c0f3e52e Add automatic CUA_API_KEY environment variable support for Computer and CloudProvider
Previously, users had to explicitly read the CUA_API_KEY environment variable
and pass it to the Computer/CloudProvider constructor. This change makes the
API key parameter optional and automatically reads from the CUA_API_KEY
environment variable if not provided.

Changes:
- CloudProvider.__init__: Made api_key parameter optional, reads from CUA_API_KEY env var
- Computer.__init__: Added fallback to CUA_API_KEY env var for api_key parameter
- Updated documentation examples to show simplified usage without explicit api_key
- Updated cloud_api_examples.py to demonstrate the new simpler pattern

This provides a cleaner API while maintaining backward compatibility with
explicit api_key parameter passing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-19 19:35:32 +01:00
f-trycua 76b52ece72 Changes for VLM launch 2025-11-19 14:42:12 +01:00
ddupont 00231b6d52 Prioritize UI-TARS-2 section in computer-use agents docs 2025-11-18 17:22:53 -05:00
Dillon DuPont ebbd5fc4f8 add UI-TARS-2 to docs 2025-11-18 17:20:20 -05:00
Francesco Bonacci cb81fddd74 Merge pull request #591 from trycua/blog/cua-cli-blogpost
Add cua cli blogpost
2025-11-18 16:27:51 +01:00
f-trycua 55ec3b617f Add CLI announcement blog post and update domain to sandbox.cua.ai
- Add introducing-cua-cli.md blog post following the Windows/macOS announcement style
- Update CLI sandbox command to use sandbox.cua.ai domain instead of containers.cloud.trycua.com
- Update all documentation references to use new sandbox.cua.ai domain
- Maintain consistency with Python SDK which already uses sandbox.cua.ai

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 16:17:17 +01:00
Sarina Li 003e417c89 fix linting + format issues too 2025-11-18 10:04:23 -05:00
f-trycua 9c1fdcdac5 Reorder CLI commands to show grouped structure first in help
- Register grouped commands (auth, sandbox/sb) first so they appear at top of help
- Hide flat commands from help using describe: false while maintaining functionality
- Fix remaining --configuration references in docs (should be --size)
- Improves help clarity by showing recommended command structure prominently

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 13:48:07 +01:00
f-trycua 0ea452e481 feat(cua-cli): add grouped auth commands and update docs to prefer verbose style
Add support for grouped auth command structure (cua auth login/env/logout)
while maintaining backwards compatibility with flat commands (cua login/env/logout).
Update all documentation to prefer the more explicit grouped style.

Changes:
- Refactor auth.ts to support both flat and grouped command structures
- Extract auth command handlers for reuse (loginHandler, envHandler, logoutHandler)
- Add "cua auth" command group with login/env/logout subcommands
- Update quickstart to use "cua auth login" instead of "cua login"
- Update CLI index.mdx and installation.mdx to use grouped style
- Update commands.mdx to show grouped style as primary with flat as alternative
- Update README.md to document both command styles
- Update error messages and examples to use grouped style

Both command styles work identically - users can choose based on preference.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 13:35:10 +01:00
f-trycua 53d7f19390 docs(quickstart): merge Cloud Sandbox CLI and Website tabs
Consolidate the separate "Cloud Sandbox (CLI)" and "Cloud Sandbox (Website)"
tabs into a single "Cloud Sandbox" tab that shows both methods. This reduces
duplication and makes it clearer that both approaches are available.

Changes:
- Merge Cloud Sandbox tabs in "Set Up Your Computer Environment" section
- Merge Cloud Sandbox tabs in "Using Computer" section for Python
- Merge Cloud Sandbox tabs in "Using Computer" section for TypeScript
- Update comments to indicate sandbox name can come from CLI or website
- Mark CLI as recommended method in setup instructions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 13:32:03 +01:00
f-trycua a5f566a5e6 refactor(cua-cli): rename 'open' command to 'vnc' with backwards compatibility
Rename the VNC command from 'open' to 'vnc' for clarity and specificity.
Keep 'open' as an alias for backwards compatibility.

Changes:
- Update command definition to use 'vnc' as primary, 'open' as alias
- Update README.md to reflect new command name
- Update commands.mdx documentation with new command and alias
- Update quickstart.mdx to use 'cua sb vnc'
- Update command examples in tips section

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 13:30:34 +01:00
f-trycua c6eb4477c6 Update docs to prefer 'cua sb' shorthand
Update documentation and examples to showcase the 'cua sb' shorthand as
the primary grouped command style, since it's more concise than
'cua sandbox'.

Changes:
- CLI index docs: Use `cua sb` in examples
- Command reference: Show `cua sb` first, then `cua sandbox` as alternative
- Quickstart guide: All sandbox commands now use `cua sb`
- README: Reorder to show `cua sb` as primary grouped style

Auth commands remain flat: `cua login`, `cua env`, `cua logout`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 13:26:38 +01:00
f-trycua 42f7157848 Rename --configuration to --size for clarity
The option `--size` is much more intuitive than `--configuration` when
the values are small/medium/large.

Changes:
- CLI option renamed from `--configuration` to `--size`
- API still receives `configuration` parameter (internal mapping)
- Updated all documentation to use `--size`
- Updated examples in README, docs, and quickstart

Users now use:
- `cua create --os linux --size small --region north-america`

Instead of:
- `cua create --os linux --configuration small --region north-america`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 13:25:04 +01:00
f-trycua 8395068286 Add dual command structure: flat and grouped styles
Support both flat (`cua list`) and grouped (`cua sandbox list` or `cua sb list`)
command styles for maximum flexibility.

Key changes:
- Extracted command handlers to be reusable
- Register each command in both flat and grouped structures
- Add `sb` as shorthand alias for `sandbox`
- Update documentation to show both styles

Users can now use:
- Flat: `cua list`, `cua create`, `cua start <name>`
- Grouped: `cua sandbox list`, `cua sandbox create`, `cua sandbox start <name>`
- Shorthand: `cua sb list`, `cua sb create`, `cua sb start <name>`

All three styles work identically!

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 13:22:08 +01:00
f-trycua ae0b5dd19b Update quickstart examples to use sandbox naming
Replace example sandbox names from "my-vm-abc123" to "my-sandbox-abc123"
for consistency with the VM → Sandbox refactoring.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 13:17:42 +01:00
f-trycua 9f13156d13 Remove staging environment references from cua-cli
Remove environment override sections that referenced staging deployments
from both the README and documentation. Users should only interact with
production environments.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 13:15:20 +01:00
f-trycua 90357ab73d Fix stale VM reference in CLI docs
Update environment variables example to use 'cua list' instead of
'cua vm list' to align with the CLI refactoring.

Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 13:14:15 +01:00
Dillon DuPont baea04339b flip tab order 2025-11-18 00:19:14 -05:00
Dillon DuPont b537d3af05 flip tab order 2025-11-18 00:18:26 -05:00
Dillon DuPont acf98b4ac5 Add the CLI to the quickstart 2025-11-18 00:17:53 -05:00
Francesco Bonacci c58fe1f5cd Merge pull request #582 from trycua/study-docs-structure
Fixes pre-launch week
2025-11-17 17:36:30 +01:00
Francesco Bonacci 5b89f0e436 Change video source in demo section
Updated video source for Windows app demo behind VPN.
2025-11-17 17:35:56 +01:00
f-trycua 5983a9b849 Add blogpost and doc 2025-11-17 17:26:41 +01:00
f-trycua 2b595f5de8 Fixes pre-launch week 2025-11-17 16:56:17 +01:00
Adam fdfcd9e443 Merge pull request #493 from YeIIcw/docs/mcp-server-locally
Add Local Desktop Mode for MCP Server with updated docs
2025-11-17 14:56:10 +00:00
Sarina Li aa2d1f4db9 new usecase 2025-11-16 18:23:58 -05:00
Adam e98f71dc57 fix: correct computer typing helper in docs
Replace the outdated `interface.type()` calls in the Python docs with
`interface.type_text()` to match the current Computer SDK API.
2025-11-15 00:59:16 -05:00
Dillon DuPont d72aa12184 Merge branch 'main' of https://github.com/trycua/cua 2025-11-14 17:45:31 -05:00
Dillon DuPont 40a0723c03 Fix quickstart docs 2025-11-14 17:44:58 -05:00
Dillon DuPont 7511049ff7 Disable cua chat cli 2025-11-14 17:43:49 -05:00
ddupont dc2c1e5c8c Merge pull request #576 from trycua/feat/cli-refactor
Flatten CLI, rename VM to sandbox
2025-11-14 16:26:02 -05:00
Dillon DuPont f7f00e7e5d flatten CLI, rename VM to sandbox 2025-11-14 16:23:40 -05:00
Dillon DuPont d6184810f3 Update CLI docs to have bun step 2025-11-14 16:03:48 -05:00
Sarina Li 22a9fb270e change vm/container to sandbox 2025-11-13 13:19:37 -05:00
Sarina Li bd05000bb6 fix sidebar height issue 2025-11-13 11:53:26 -05:00
Sarina Li 191a507c8f fix landing /docs page 2025-11-13 11:47:36 -05:00
Sarina Li a8d21ae77b change default model 2025-11-13 11:26:47 -05:00
Sarina Li 2f64c11966 add permanent redirs 2025-11-13 11:26:12 -05:00
f-trycua ed9005075f Add docs 2025-11-12 19:43:04 +01:00
f-trycua 8cc273e0e8 Run lint 2025-11-12 19:16:00 +01:00
f-trycua 6f04b80b11 Update computers 2025-11-12 19:10:51 +01:00
f-trycua 083c988d06 Update quickstart 2025-11-12 19:09:57 +01:00
Dillon DuPont 046b33c3ca updated quickstart with cli installation 2025-11-12 12:53:50 -05:00
Dillon DuPont fec44584f5 add cua-cli page 2025-11-12 12:25:02 -05:00
f-trycua eaaf592f26 Initial refactor docs 2025-11-12 12:55:35 +01:00
f-trycua 67ee0e1d65 Merge branch 'main' into improve-docs-home 2025-11-10 17:43:43 +01:00
f-trycua ae163fc665 Revamp docs 2025-11-10 17:42:34 +01:00
Sarina Li 04e93687ad fix new line + ai gen citing 2025-11-10 11:14:41 -05:00
Francesco Bonacci 1b71062589 Merge pull request #404 from lmnr-ai/docs-observability
add docs on observability with Laminar
2025-11-05 00:51:41 +01:00
Tamoghno Kandar 429c9b2c4b Update composed-agents.mdx
Fixed a typo
2025-11-03 16:57:02 -08:00