fix skyvern run task doc (#2385)

This commit is contained in:
Shuchang Zheng
2025-05-19 00:40:41 -07:00
committed by GitHub
parent 622b4cb71d
commit abf581a8ce

View File

@@ -98,36 +98,37 @@ This quickstart guide will walk you through getting Skyvern up and running on yo
4. **Launch the Skyvern UI** 4. **Launch the Skyvern UI**
```bash ```bash
skyvern run ui skyvern run ui
``` ```
5. **Run task** 5. **Run task**
Run a skyvern task locally:
```python
from skyvern import Skyvern
skyvern = Skyvern() Run a skyvern task locally:
task = await skyvern.run_task(prompt="Find the top post on hackernews today") ```python
print(task) from skyvern import Skyvern
```
You should see your local browser
You can also send a task to Skyvern Cloud skyvern = Skyvern()
```python task = await skyvern.run_task(prompt="Find the top post on hackernews today")
from skyvern import Skyvern print(task)
```
A local browser will pop up. Skyvern will start executing the task in the browser and close the it when the task is done.
skyvern = Skyvern() You can also send a task to Skyvern Cloud:
task = await skyvern.agent.run_task(prompt="Find the top post on hackernews today") ```python
print(task) from skyvern import Skyvern
```
skyvern = Skyvern()
Or anywhere Skyvern is hosted: task = await skyvern.agent.run_task(prompt="Find the top post on hackernews today")
```python print(task)
skyvern = Skyvern(base_url="http://localhost:8000", api_key="SKYVERN API KEY in LOCAL SKYVERN") ```
task = await skyvern.agent.run_task(prompt="Find the top post on hackernews today")
print(task) Or send the task anywhere Skyvern is hosted:
``` ```python
skyvern = Skyvern(base_url="http://localhost:8000", api_key="SKYVERN API KEY in LOCAL SKYVERN")
task = await skyvern.agent.run_task(prompt="Find the top post on hackernews today")
print(task)
```
## Docker Compose setup ## Docker Compose setup