> ## Documentation Index
> Fetch the complete documentation index at: https://arka-agent-mintlify-f21cea86.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 在浏览器中打开 URL

> 从终端在默认浏览器中打开网站，支持 youtube、github 等站点别名，完整 URL，或直接启动 Brave、Chrome、Firefox 等桌面浏览器应用。

无需离开终端，即可在系统默认浏览器中打开网站。

## 快速开始

```bash theme={null}
arka open youtube
arka open github.com
arka open https://news.ycombinator.com
arka browse google
open google in browser
```

## 站点别名

常见名称会自动映射到 URL：

| 名称 | 打开 |
| - | - |
| `youtube` | [https://youtube.com](https://youtube.com) |
| `google` | [https://google.com](https://google.com) |
| `github` | [https://github.com](https://github.com) |
| `reddit` | [https://reddit.com](https://reddit.com) |
| `wikipedia` | [https://wikipedia.org](https://wikipedia.org) |
| `hackernews` / `hn` | [https://news.ycombinator.com](https://news.ycombinator.com) |

完整的 `https://` URL 以及 `domain.tld` 形式都可以直接使用。

Arka 会保留你提供的路径与查询参数。因此 `open https://example.com/docs?a=1`
会打开这个精确的 URL，而不会自行捏造一个新的。

## 浏览器应用启动器

浏览器名称的裸 token 会启动已安装的桌面浏览器应用，而不是打开对应的 `.com` 网站：

| 名称 | 启动 |
| - | - |
| `brave` | Brave Browser |
| `chrome` / `googlechrome` | Google Chrome |
| `chromium` | Chromium |
| `firefox` | Firefox |
| `safari` | Safari（macOS） |
| `edge` / `microsoftedge` | Microsoft Edge |
| `arc` | Arc |
| `vivaldi` | Vivaldi |
| `opera` | Opera |

```bash theme={null}
arka open brave
arka open firefox
arka launch chrome
```

该别名仅在裸 token 时触发。如果想打开对应的网站，请传入类似 URL 的目标：

```bash theme={null}
arka open brave.com
arka open https://firefox.com
```

Arka 在 macOS 上调用 `open -a "<App>"`，在 Windows 上调用 `start`，在 Linux 上使用 `PATH` 中第一个匹配的可执行文件（例如 `brave-browser`、`google-chrome`、`microsoft-edge`）。若应用未安装，Arka 会输出 `Could not launch '<App>'` 并以非零状态退出。

自然语言示例：

```bash theme={null}
arka open this exact url https://example.com/docs?a=1
arka repair broken links in this file
```

## 与 play\_youtube 的区别

| 说法 | 使用的技能 |
| - | - |
| `arka open youtube` | 在浏览器中打开 youtube.com |
| `arka play lofi on youtube` | YouTube 播放技能 |

Arka 会区分 **open**（浏览器）与 **play** / **watch**（媒体）。

## 命令

| 命令 | 描述 |
| - | - |
| `arka open <site-or-url>` | 在默认浏览器中打开 |
| `arka browse <site-or-url>` | 别名 |
| `open_url <target>` | 直接调用的技能（fish） |


## Related topics

- [Kaggle 数据集](/cn/guides/kaggle.md)
- [书签管理器](/cn/guides/bookmarks.md)
- [AI 智能体指南 — 通过 MCP 使用 Arka](/cn/guides/ai-agents.md)
- [输出查看器](/cn/guides/output-viewer.md)
- [2026 年 7 月 13 日当周](/cn/changelog/2026-07-13.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.