You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 16, 2025. It is now read-only.
Need to access this endpoint programmatically? Learn more about [Preview & Authentication](/docs/preview-and-authentication).
595
+
518
596
:::tip
519
597
You can access the Sandbox [Web Terminal](/docs/web-terminal) by printing out the preview URL for port `22222` or by simply going to Dashboard -> Sandboxes and clicking on the Terminal input sign.
520
598
:::
@@ -663,6 +741,8 @@ npx ts-node claude-example.ts
663
741
664
742
Use the Daytona SDK [Python examples](https://github.com/daytonaio/sdk/tree/main/examples/python) or [TypeScript/JavaScript examples](https://github.com/daytonaio/sdk/tree/main/examples/typescript) to create a Sandbox and run your code.
665
743
744
+
Speed up your development on Daytona using LLMs. Copy the /llms.txt files and include them into your projects or chat context: [llms-full.txt](https://www.daytona.io/docs/llms-full.txt) or [llms.txt](https://www.daytona.io/docs/llms.txt)
745
+
666
746
Learn more by checkout out the Daytona SDK repository on [GitHub](https://github.com/daytonaio/sdk).
667
747
668
748
## Setting up the Daytona CLI
@@ -1095,7 +1175,7 @@ enabling you to programmatically manage development environments and execute cod
1095
1175
1096
1176
### Quick Start
1097
1177
1098
-
Run your first line of code in a Daytona Sandbox.
1178
+
Run your first line of code in a Daytona Sandbox. Use our [LLMs context files](/docs/getting-started#additional-examples) for faster development with AI assistants.
1099
1179
1100
1180
#### 1. Get Your API Key
1101
1181
@@ -1104,7 +1184,6 @@ Run your first line of code in a Daytona Sandbox.
1104
1184
- Go to the Daytona [Dashboard](https://app.daytona.io/dashboard).
1105
1185
- Create a new [API key](https://app.daytona.io/dashboard/keys). Make sure to save it securely,
1106
1186
as it won't be shown again.
1107
-
- You'll need it in the next step.
1108
1187
1109
1188
#### 2. Install the SDK
1110
1189
@@ -1529,6 +1608,40 @@ Organization and they may proceed by issuing a new API key and creating sandboxe
1529
1608
1530
1609
The Settings subpage in the Dashboard allows you to view the Organization ID and Name and to delete the Organization if you don't need it anymore. This action is irreversible, so please proceed with caution. Personal Organizations are there by default and cannot be deleted.
1531
1610
1611
+
title: Preview & Authentication
1612
+
1613
+
import { Tabs, TabItem } from '@astrojs/starlight/components';
1614
+
1615
+
Processes listening for HTTP traffic in port range `3000-9999` can be previewed using preview links.
1616
+
1617
+
A preview link's schema consists of the port, Sandbox ID and node combination, e.g.:
1618
+
`https://3000-sandbox-123456.h7890.daytona.work`
1619
+
1620
+
If the Sandbox has its `public` property set to `true`, these links will be publicly accessible, otherwise the preview link will be available only to the Sandbox Organization users.
1621
+
1622
+
For programmatic access (for example, `curl`), use the authorization token to access the preview URL, e.g.:
console.log(`Preview link url: ${previewInfo.url}`);
1641
+
console.log(`Preview link token: ${previewInfo.token}`);
1642
+
1643
+
```
1644
+
1532
1645
title: Process and Code Execution
1533
1646
1534
1647
import { Tabs, TabItem } from '@astrojs/starlight/components';
@@ -1598,16 +1711,46 @@ Daytona SDK provides an option to execute shell commands and manage background p
1598
1711
Daytona SDK provides an option to execute shell commands in Python and TypeScript. You can run commands with input, timeout, and environment variables.
Daytona SDK provides an option to start, stop, and manage background process sessions in Sandboxes. You can run long-running commands, monitor process status, and list all running processes.
@@ -1928,23 +2071,7 @@ const state = sandbox.instance.state
1928
2071
```
1929
2072
1930
2073
1931
-
### Sandbox Preview Port
1932
-
1933
-
Daytona SDK also provides a method to get the preview port for the Sandbox.
1934
-
1935
-
```python
1936
-
# Get the preview link for an app running on port 3000
1937
-
1938
-
preview_link = sandbox.get_preview_link(3000)
1939
-
1940
-
```
1941
-
```typescript
1942
-
// Get the preview link for an app running on port 3000
1943
-
1944
-
const previewLink = sandbox.getPreviewLink(3000)
1945
-
1946
-
```
1947
-
2074
+
To get the preview URL for a specific port, check out [Preview & Authentication](/docs/preview-and-authentication).
0 commit comments