python installation & run task docs (#2384)

This commit is contained in:
Shuchang Zheng
2025-05-19 00:31:04 -07:00
committed by GitHub
parent 52bbf3e18a
commit 622b4cb71d
4 changed files with 60 additions and 3 deletions

View File

@@ -102,6 +102,33 @@ This quickstart guide will walk you through getting Skyvern up and running on yo
skyvern run ui
```
5. **Run task**
Run a skyvern task locally:
```python
from skyvern import Skyvern
skyvern = Skyvern()
task = await skyvern.run_task(prompt="Find the top post on hackernews today")
print(task)
```
You should see your local browser
You can also send a task to Skyvern Cloud
```python
from skyvern import Skyvern
skyvern = Skyvern()
task = await skyvern.agent.run_task(prompt="Find the top post on hackernews today")
print(task)
```
Or 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
1. Make sure you have [Docker Desktop](https://www.docker.com/products/docker-desktop/) installed and running on your machine