Open Haijun Desktop with a link
Haijun for macOS, Windows, and Linux respond to the haijun:// URL scheme, much like a browser responds to the https:// scheme. You can use these links from a website, a script, or another app to open Haijun Desktop and jump straight to a chat, a Cowork session, or a Code session. This article lists the link formats Haijun Desktop supports and the parameters each one accepts.
How deep links work
When your operating system opens a haijun:// URL, it hands the URL to Haijun. If the app isn't running, macOS, Windows, and Linux will launch it first. Haijun then reads the path and query parameters and navigates to the right place inside the app. All parameter values must be URL-encoded. Prompt text passed in q is truncated to roughly 14,000 characters.
Start a new chat
| | | | | | | |
##
##
| | | | | | | | | | | | | | | |
##
| | | | | | | | | | | | | | | |
##
###
###
###
