Eorzea is a terminal multiplexer: a Ghostty terminal living inside FINAL FANTASY XIV.
Vote on what it does next: https://spacegho.st/mods/ffxiv/term/vote/
This is an independent project, not an official Ghostty project. Acceptance into the official Dalamud plugin list has not been established. The changelog distinguishes features seen in game from those still awaiting verification; a stable release does not establish Windows, macOS, or controller compatibility. See release readiness for the evidence still needed.
A Ghostty terminal living inside Final Fantasy XIV, as a Dalamud plugin, so the game can double as a desktop. Press ctrl+` for a Quake-style drop-down with tabs, click the server info bar entry for a list of every terminal (right-click: a popup terminal), or, with Umbra installed, use its toolbar widget for a popup terminal.
Vote on features. The in-game About screen links to the same page. Its idea catalogue ships with the plugin; the plugin does not fetch the catalogue in the background.
The experimental phone shell adds /phone: summon the device,
project supported UI in front of the character, and phase a focused panel onto
the 2D HUD. Native game-window migration and xivspell consolidation remain
unfinished; the coverage table records the current implementation.
The terminal uses libghostty-vt for VT state and renders into Dalamud's ImGui draw lists. The repository contains a Quake-style drop-down, floating windows, world panels, selection and keyboard handling, controller input, and configurable appearance. Some game-facing features remain experimental and unverified on their target environment.
Terminal images use the Kitty graphics protocol, including inline RGB/RGBA and PNG images, source cropping and Kitty's three z-layers. The decoded pixels are uploaded to a bounded D3D11 texture cache, so the same support is available in the dropdown, floating windows, native game windows and world panels. Sixels are not required or currently implemented.
| Component | Purpose |
|---|---|
GhosttyDalamud.dll |
Dalamud plugin adapter and game facilities |
ghostty_loader.dll |
Native core loading and development hot reload |
ghostty_core.dll |
Terminal, rendering, transports and embedded Lua |
lua/ |
Configuration, settings UI, layout and behavior |
Umbra.Ghostty.dll |
Optional toolbar widget using versioned plugin IPC |
ghostty-agent |
Separate POSIX process hosting terminal sessions |
Gallery: https://spacegho.st/mods/ffxiv/term/gallery/, screenshots shared by players.
Sharing one takes one click. With a terminal on screen (the dropdown, a window or a screen in the world), take a normal screenshot with the game's screenshot key. The plugin sees the new file in the game's screenshot folder and a small prompt in the bottom right asks Share to the Ghostty gallery? Click Share. The image goes to the gallery, where the site owner reviews it before anyone else can see it. Tick Credit it to Name@World in the prompt to have your character named under it; left unticked, it is anonymous.
The gallery takes uploads from signed-in accounts only. The first Share
shows Link Ghostty to your account: code XXXX-XXXX and opens the link page
in your browser; sign in there (GitHub or XIVAuth) and approve Ghostty, and the
screenshot goes up by itself. The link lasts 180 days, is kept in
settings.lua in the plugin's config folder and is never logged;
/term share unlink forgets it, and the site's connected apps page revokes it.
Not yet tried in game.
/term share, the camera button in the dropdown's tab bar, or Settings → About → Share my latest screenshot offer your most recent screenshot at any time.- Don't ask again in the prompt,
/term share offor Settings → Gallery turns the prompt off;/term share onturns it back on. - Nothing is uploaded without the click. The prompt only watches the folder while a terminal is on screen, or was within the last minute, and a screenshot taken while no terminal was showing is never offered.
- The gallery takes PNG and JPEG up to 8 MB. A 4K PNG can be larger: the prompt says so, and JPG (System Configuration → Other Settings → Screenshots) is much smaller. The site strips the files' embedded metadata.
- The folder is the game's own screenshot setting (
ScreenShotDir), elsescreenshotsin the game's user folder;CONFIG.gallery.foldersinlua/gallery.luaadds more (for example a Steam or ShareX folder). - You can also pick a file on the gallery page itself.
/term showcase sets up demo terminals and camera shots for taking them with
your own terminals hidden.
The game's screenshot key writes the frame the game composed; the terminals are
drawn on top of it by Dalamud, and whether they land in that file has never
been checked here. /term shot removes the question by taking the picture
after every ImGui window has been drawn into the frame: it copies the finished
frame — the world, the game's UI and every ImGui window on top of it — and
writes a PNG into the plugin's own screenshots folder, then offers it to the
same share prompt.
| Command | What it does |
|---|---|
/term shot |
the whole frame |
/term shot panel |
just the terminal window in focus |
/term shot clean |
hides the game's own UI (action bars, party list, chat log…) for the shot and puts it back |
/term clip [seconds] [gif|mp4] |
records a few seconds (6 by default, 20 at most) |
The shutter button in the dropdown's tab bar is /term shot; the camera beside
it still offers your latest screenshot to the gallery.
Clips are encoded outside the game: the plugin sends reduced frames to
ghostty-agent, which runs ffmpeg on the host (GHOSTTY_FFMPEG and
GHOSTTY_CLIP_DIR choose which one and where). With no ffmpeg on the host, the
clip is refused before a single frame is taken and the chat says so. GIF and
MP4 are for your own use — the gallery takes PNG and JPEG only.
See docs/CAPTURE.md for how the frame is taken and what is and is not tested. None of it has been tried in game yet.
| Piece | Where it runs | Purpose |
|---|---|---|
GhosttyDalamud.dll |
inside the game (.NET) | Dalamud plugin shim: loads the core, forwards the frame tick, UI buttons and game facilities |
ghostty_loader.dll |
inside the game (native, Nelua) | runs a copy of ghostty_core.dll and swaps it within ~2 s when the file changes (/term reload-core) |
ghostty_core.dll |
inside the game (native, Nelua) | libghostty-vt terminal, ImGui renderer, input encoding, transports, embedded Lua VM; registers /term, the info bar entry and IPC |
lua/*.lua |
inside the game (Lua) | profiles, keys, layout, transport choice, what gets registered |
Umbra.Ghostty.dll |
inside Umbra (.NET, optional) | toolbar widget + popup, calling the plugin over IPC |
ghostty-agent / ghostty-agent.exe |
on your Linux/macOS box, or on Windows beside the game (Nelua) | PTY server: shells, ssh, tmux, anything, as persistent sessions |
- agent – the plugin connects over TCP to
ghostty-agentrunning on the host (or anywhere reachable). Keep it on loopback, or reach it throughssh -Lor a private network: connections must present the token, but the stream is not encrypted. Sessions survive the plugin reloading or the game closing; reattaching replays the recent raw output and libghostty rebuilds the screen, which is the same model Superlogical uses. This is the transport to use when the game runs under Wine/Proton on Linux, and on native Windows withghostty-agent.exe(see Linux and Windows). - conpty – a Windows pseudo console inside the game process (PowerShell,
cmd,
ssh.exe, …). Needs no agent, but its shells end when the game closes. On native Windows the default profiles fall back to it while no agent answers. Under Wine it is untested in game. - ssh – not a transport of its own: run
ssh hostthrough either of the above (see the commented examples inlua/init.lua). - superlogical – placeholder. Mitchell Hashimoto's
Superlogical multiplexer is
in private beta and has not published a client protocol yet; once it does,
it slots in as another transport (it streams raw PTY bytes to libghostty
clients, exactly like
ghostty-agent).
- Build host: Linux (glibc or musl) with
git, a C compiler,make,python3,curl, Zig 0.16.0 and the .NET 10 SDK. Nelua is built from the pinned fork automatically. - Game: FFXIV with Dalamud (XIVLauncher on Windows, or XIVLauncher.Core under Wine/Proton on Linux) and dev plugins enabled. The manifest targets Dalamud API level 15.
- Agent host: Linux or macOS (
ghostty-agent), or Windows 10 1809 or later (ghostty-agent.exe, ConPTY). Theconptytransport needs the game on Windows. - Umbra is optional.
The default path is an Incus build container on another machine, because the gaming PC has too little memory for a full build:
tools/build-container.sh create # once per Incus host: the container and its toolchain
tools/build-remote.sh test # the whole test suite, there
tools/build-remote.sh # a full build; build/dist/ comes back hereSee docs/BUILDING.md. Locally, on a machine with the memory for it:
tools/fetch-vendor.sh
tools/build.sh
python3 -m unittest discover -s tests -p 'test_*.py' -v
vendor/nelua-lang/nelua-lua tests/test_defaults.lua
tests/run.shDependencies are fetched at the revisions in toolchain.env. Nelua's Makefile
is invoked during dependency builds: the checked-in executable launcher alone
is not evidence that its interpreter has been built.
Dalamud reference assemblies are downloaded from an immutable revision of the
official distribution and verified before extraction into vendor/dalamud.
Every cached file is checked before reuse. An unverified or modified cache is
rejected; move it aside intentionally before fetching again. These build-time
references do not update the player's installed Dalamud runtime.
| Override | Purpose |
|---|---|
ZIG, DOTNET, CC, JOBS |
Tool paths and build concurrency |
DALAMUD_LIB_PATH |
Explicit local reference-assembly override, outside bundle verification |
UMBRA_LIB_PATH |
Umbra reference assemblies; otherwise pinned vendor/umbra-dist/dist |
SKIP_UMBRA=1 |
Build without the optional widget |
SKIP_SHIM=1 |
Rebuild native/Lua components using existing managed outputs |
SKIP_WIN=1 |
Build host components without Windows native binaries |
SKIP_DEPS=1 |
Reuse existing dependency builds; not for a clean checkout |
The Windows artifacts are all cross-compiled from Linux with zig cc -target x86_64-windows-gnu plus the .NET SDK for the shim; there is no Windows build
host (docs/WINDOWS.md).
tools/ci/run.sh test build does the same with pinned, checksum-verified Zig
and Dalamud assemblies; it is what GitHub Actions and the self-hosted runners
run (see docs/CI.md). tools/ci/run.sh ingame puts a build into
a running game and runs /term selftest there through XivMcp, from a
self-hosted runner on the gaming PC (docs/CI.md, "In-game
tests"; not yet run against the game).
Compiling on the machine that runs the game is optional. tools/build-remote.sh
syncs the current worktree — branch, local edits and all — to an Incus container
on a build host, builds it there and copies build/dist/ back;
tools/test-remote.sh runs the host tests there. The workstation then needs only
an incus client and rsync: no Zig, no .NET SDK, no Dalamud assemblies, no
memory taken from the game. See
docs/REMOTE_BUILD.md.
tools/test-remote.sh # host build + tests/run.sh in the container, "ALL OK"
tools/build-remote.sh # full build there, artifacts back in build/dist/tools/build.sh and tests/run.sh choose for themselves: they run on the build
host unless the game is off and this machine has memory free, and a local run
moves to the build host if the game starts. FORCE_BUILD_HOST=local|remote
overrides, tools/where-build.sh --why explains, tools/run-placed.sh jobs
shows where builds ran. See docs/BUILD_PLACEMENT.md.
Output:
| Path | What |
|---|---|
build/dist/GhosttyDalamud/ |
the loadable plugin folder: GhosttyDalamud.dll, GhosttyDalamud.json, ghostty_loader.dll, ghostty_core.dll, lua/, themes/ |
build/dist/Umbra.Ghostty.dll |
the optional Umbra widget |
build/dist/ghostty-agent |
the PTY server for the build host |
build/dist/ghostty-agent.exe |
the PTY server for Windows |
tools/package.sh (after tools/build.sh) packs what a Windows player
installs, all in build/dist/ and named after AssemblyVersion in
shim/GhosttyDalamud/GhosttyDalamud.json; it publishes nothing:
| Path | What |
|---|---|
GhosttyDalamud-<version>.zip |
the plugin folder as Dalamud installs it from a custom repository |
ghostty-agent-<version>-windows-x64.zip |
ghostty-agent.exe |
pluginmaster.json |
a Dalamud custom-repository listing pointing at the plugin zip |
It reads DOWNLOAD_BASE_URL (where the zip will be downloadable, without the
file name; with GITHUB_REPOSITORY set it defaults to that repository's
release v<version>, otherwise a placeholder and a warning), REPO_URL and
SOURCE_DATE_EPOCH (entry times, default the last commit's, so the same build
packs to the same bytes). All build, package and test scripts are
non-interactive, configured by environment variables, and exit non-zero on
failure.
Dalamud, Umbra and game assemblies are referenced but never shipped; the build fails if one lands in the output.
From the plugin repository (one click). Ghostty is listed in the author's own third-party Dalamud repository, together with the other FFXIV mods here:
https://spacegho.st/mods/ffxiv/plugins.json
/xlsettings → Experimental → Custom Plugin Repositories → paste → + →
Save and Close; then /xlplugins → All Plugins → Ghostty → Install.
Updates arrive like any other plugin's, and ticking testing on its entry opts you
into test builds (and nothing else) ahead of a release. The page at
https://spacegho.st/mods/ffxiv/plugins/ explains it with a section per mod. It is a
third-party repository: Dalamud will say nobody but the author reviewed these plugins,
which is true. You still run the agent yourself — on Linux it is a package or a
tarball (Linux), on Windows the windows-x64 zip (Windows).
Or build it yourself — the path the rest of this section describes, and the one the author develops on. Nothing here depends on the repository above.
-
Start the agent on your Linux/macOS machine. It writes a token to
~/.config/ghostty-agent/tokenon first run:build/dist/ghostty-agent --listen 127.0.0.1:7777
Other options:
--token-file PATH,--clipboard-file PATH,--replay-bytes N,--term NAME. If the game runs on another machine, forward the port (ssh -L 7777:127.0.0.1:7777 …) and copy the token file over. Running the agent as a user service keeps your sessions alive between game sessions. -
Stage the plugin as a dev plugin:
tools/install-dev.sh # into $GHOSTTY_DEV_PLUGIN_DIR, default build/dev-plugin/GhosttyDalamud tools/install-dev.sh --widget # also $UMBRA_WIDGET_DLL, default build/dev-plugin/Umbra.Ghostty/Umbra.Ghostty.dll
Every file is written beside its target and renamed into place, so a running Dalamud hot-reloads cleanly. The script prints the Wine
Z:\…path of the staged DLL. On Windows, copybuild/dist/GhosttyDalamud/anywhere yourself. -
In game:
/xlsettings→ Experimental → Dev Plugin Locations, add the path the script printed and save; then/xlplugins→ Dev Tools → enable Ghostty and tick load on boot. If Dalamud says the location does not exist and your home directory is reached through a symlink, try the path with the symlink resolved (readlink -f), or the other way round.
Nothing a Linux player needs involves Zig, the .NET SDK or a checkout of this repository: the plugin installs from the repository above in one click, and the agent is the one file you fetch yourself.
The packages below are built, installed and run inside a Fedora container on every push, and nobody has yet installed one from a published release on their own machine.
-
Fedora 44 or newer. This build carries the Wayland compositor that remote desktop windows and the browser integration need.
sudo dnf install https://github.com/Spaceghost/ghostty-dalamud/releases/latest/download/ghostty-agent.fc44.x86_64.rpm systemctl --user enable --now ghostty-agentThe package is unsigned, so dnf says it skipped the OpenPGP check and carries on.
-
Fedora 43, and any other rpm distribution with glibc 2.36 or newer. The same, with
ghostty-agent.fc43.x86_64.rpm. Fedora 43 ships wlroots 0.19 and the compositor needs 0.20, so dnf refuses the Fedora 44 package there and names the library it cannot provide. Terminals, jobs and clips work; remote desktop windows are not in this build. -
Alpine. Alpine has wlroots 0.20, so its package carries the compositor too.
doas apk add --allow-untrusted ghostty-agent.apk
There is no service file: OpenRC has no per-user service manager to hang a program that holds one person's terminals on, so you start it yourself.
-
Any other Linux.
tar -xzf ghostty-agent-<version>-linux-x86_64.tar.gz cd ghostty-agent-<version>-linux-x86_64 install -Dm0755 ghostty-agent ~/.local/bin/ghostty-agent
Check what you downloaded against the release's own SHA256SUMS
(sha256sum -c SHA256SUMS).
| Asset | What |
|---|---|
ghostty-agent.fc44.x86_64.rpm |
Fedora 44 and newer, with the Wayland compositor |
ghostty-agent.fc43.x86_64.rpm |
any rpm distribution with glibc 2.36+, no compositor |
ghostty-agent.apk |
Alpine, musl, with the Wayland compositor |
ghostty-agent-linux-x86_64.tar.gz |
the same binary as the .fc43 package, its unit and its README |
ghostty-agent-src.tar.gz |
the agent's own source; rpmbuild -tb builds a package from it offline |
BUILD-INFO.txt inside the tarball names the machine it was built on, the
glibc it needs and whether the compositor is in it.
ghostty-agent --listen 127.0.0.1:7777The first start writes a token to ~/.config/ghostty-agent/token, readable only
by you; the plugin reads that same file, so there is nothing to configure when
the game and the agent are on one machine. Other flags: --token-file PATH,
--clipboard-file PATH, --replay-bytes N, --term NAME, --windows NAME.
--listen can be given more than once: one agent, the same sessions and token on each address, e.g. --listen 127.0.0.1:7777 --listen 100.x.y.z:7777 for the game on this machine plus your tailnet. Only the first is required to open at start; a later one that cannot open yet (Tailscale not up) is retried every 10 s. Linux and macOS only.
When the game is on another machine, forward the port and copy the token over:
ssh -L 7777:127.0.0.1:7777 …. The token authenticates the connection but the
stream is not encrypted, so keep it on loopback, in that tunnel, or on a private
network. journalctl --user -u ghostty-agent -f is its log.
The package ships a systemd user unit:
systemctl --user enable --now ghostty-agentFrom the tarball, install the unit it carries:
install -Dm0644 ghostty-agent.service ~/.config/systemd/user/ghostty-agent.service
systemctl --user daemon-reload
systemctl --user enable --now ghostty-agentloginctl enable-linger "$USER" keeps your shells alive between logins.
systemctl --user import-environment WAYLAND_DISPLAY DISPLAY hands the
clipboard helpers your session when they cannot find it themselves.
None of this needs root: the agent is a normal user process, and it is a user service on purpose. A system service has no session, and would quietly lose the clipboard and every remote window.
A C compiler, make and git. No Zig, no .NET SDK, no Dalamud reference
assemblies, no vendor/ghostty.
tools/fetch-vendor.sh agent # only what the agent needs
tools/build-agent.sh # build/dist/ghostty-agenttools/build-agent.sh --wayland builds the compositor in on any host that has
wlroots 0.20 headers, which is how you get remote desktop windows outside the
Fedora 44 package. For a package of your own,
tools/package-agent.sh && rpmbuild -tb build/dist/ghostty-agent-<version>-src.tar.gz.
docs/WINDOWS.md is the Windows half in one place: what runs
where, the transports and why the /ask panel never uses a pseudo console,
paths with non-ASCII characters, how to cross-build and which tests only a
Windows machine can run.
Everything here is built on Linux and has not been run on a real Windows
machine yet. What was observed: ghostty-agent.exe under Wine (Proton 11)
served a cmd.exe session end to end (see Limitations). The plugin itself,
its Windows defaults, the fallback to local shells and the packages below
have not been seen working in game on Windows.
Nothing a Windows player needs involves bash, Wine or a Linux machine.
Either way needs Dalamud (XIVLauncher on Windows).
- From the plugin repository:
/xlsettings→ Experimental → Custom Plugin Repositories, addhttps://spacegho.st/mods/ffxiv/plugins.json, save; then/xlplugins→ All Plugins → install Ghostty. That listing is assembled from this repository's own releases, so it always points at thelatest.zipthe release workflow built and attached to the newest tag. - As a dev plugin: unzip
GhosttyDalamud-<version>.zip(or copybuild/dist/GhosttyDalamud/) to a folder of your own, e.g.%APPDATA%\GhosttyDalamud\dev\GhosttyDalamud./xlsettings→ Experimental → Dev Plugin Locations, add the full path ofGhosttyDalamud.dllin it, save;/xlplugins→ Dev Tools → enable Ghostty and tick load on boot. To update, replace the files; a newghostty_core.dllis picked up within about two seconds.
Without an agent the plugin still works: its default profiles open local PowerShell and cmd terminals (ConPTY) inside the game, which close with the game. For shells that survive the game closing or crashing:
- Unzip
ghostty-agent-<version>-windows-x64.zipsomewhere permanent, e.g.%LOCALAPPDATA%\ghostty-agent\ghostty-agent.exe. - Run it. On first start it writes a random token to
%APPDATA%\ghostty-agent\token, readable only by your user, and listens on127.0.0.1:7777. Options as on Linux:--listen HOST:PORT,--token-file PATH,--replay-bytes N,--term NAME. It is a console program; closing its window ends it and every shell it runs. - In game the default profiles (
powershell,cmd) now open through the agent: the plugin reads the same token file, so there is nothing to configure. A terminal opened while no agent answered stays local.
Start on login, pick one:
- Startup folder:
Win+R→shell:startup, create a shortcut toghostty-agent.exethere, and in its Properties set Run: Minimized. - Task Scheduler: Create Task → General: "Run only when user is logged
on" (the agent needs your desktop for the clipboard); Triggers: At log on,
your user; Actions: Start a program,
ghostty-agent.exe; Settings: untick "Stop the task if it runs longer than".
Neither needs administrator rights; the agent is a normal user process.
lua/platform.lua picks the defaults from ghostty.platform(): 'windows'
on native Windows, 'wine' for the same DLL under Wine or Proton (ntdll
exports wine_get_version). On 'windows' the agent token file is
%APPDATA%\ghostty-agent\token and the profiles are powershell and
cmd through the agent, each with a fallback naming its local ConPTY twin
(powershell (local), cmd (local)). Under Wine nothing changed: the Linux
agent's ~/.config/ghostty-agent/token, bash and tmux through the agent,
pwsh and cmd over ConPTY. A copied init.lua that sets agent and
profiles itself is used as it is.
Copy and paste use the Windows clipboard through Dalamud's ImGui when no agent is connected; with the Windows agent they also go through the agent's Win32 clipboard (the same clipboard when the agent runs on the game's machine). Neither has been tried on Windows.
Umbra → Settings → Plugins → add the path to Umbra.Ghostty.dll, then add the
Ghostty terminal widget to a toolbar. The widget has no native code: it
talks to the plugin over IPC and shows "ghostty offline" when the plugin is
not loaded. While the widget is active, the server info bar entry hides itself
(host.dtr.mode = 'auto'; set it to 'always' or 'never'). Umbra reloads
by itself when the DLL changes.
Until the standalone plugin (the releases listed as 0.1 to 0.4 in the
Changelog tab) the terminal core was loaded by the Umbra widget and kept its
files in pluginConfigs/Umbra/ghostty. Back up that directory and the old
Umbra.Ghostty.dll first if you want a way back; install-dev.sh does not.
On its first start the plugin copies, from pluginConfigs/Umbra/ghostty (or
$UMBRA_GHOSTTY_HOME), whatever is not already in its own config directory:
settings.lua, world-state.lua, lua/init.lua and lua/keymap.lua when
they differ from the shipped ones (the agent token lives in init.lua), and
your own modules this build does not ship. Changed copies of other shipped
modules go to legacy-lua/, which is not loaded. Every copy is made
owner-only (mode 0600; on Windows a DACL naming only you). It then renames the
old ghostty_umbra.dll to ghostty_umbra.dll.migrated and writes
migrated-from-umbra.txt, after which it never runs again. Settings → Plugin
status shows the result.
Rollback: disable Ghostty in Dev Tools, rename ghostty_umbra.dll.migrated
back and restore the old Umbra.Ghostty.dll.
The config directory is <Dalamud config>/pluginConfigs/GhosttyDalamud/:
%APPDATA%\XIVLauncher\pluginConfigs on Windows, ~/.xlcore/pluginConfigs
with XIVLauncher.Core. Set GHOSTTY_HOME to use a directory of your own.
- Most options are in the settings window (
/term config, or Settings in/xlplugins), saved tosettings.luathere. - For the rest, copy
lua/init.lua(profiles, agent address and token, commands, info bar behaviour; the per-platform defaults it starts from are inlua/platform.lua) orlua/keymap.lua(which chords the plugin handles; everything else goes to the terminal exactly as Ghostty would encode it) into the config directory'slua/. That directory comes first onpackage.path, so files there win over the shipped ones. Settings made in the window apply on top.
A minimal override, pluginConfigs/GhosttyDalamud/lua/init.lua, starting from
a copy of the shipped file:
agent = {
label = 'Game PC', -- shown in tab/window decorations; its routing name is always "local"
host = '127.0.0.1',
port = 7777,
token = '',
token_file = home .. '/.config/ghostty-agent/token',
},
profiles = {
{ name = 'shell', transport = 'agent', agent = 'local', command = { '/bin/bash', '-l' } },
{ name = 'ssh', transport = 'agent', command = { 'ssh', '-t', 'example-host' } },
},For several Linux hosts, keep machine-specific addresses and token paths only in that private override. Keys are stable routing IDs; labels are cosmetic and may be changed without editing profiles:
agent = {
label = 'Game PC', host = '127.0.0.1', port = 7777,
token_file = home .. '/.config/ghostty-agent/token',
},
agents = {
workstation = { label = 'Workstation', host = '100.64.0.10', port = 7777,
token_file = '/private/path/workstation-token' },
server = { label = 'Home server', host = '100.64.0.20', port = 7777,
token_file = '/private/path/server-token' },
},
profiles = {
{ name = 'Game PC / bash', transport = 'agent', agent = 'local',
command = { '/bin/bash', '-l' } },
{ name = 'Game PC / tmux', transport = 'agent', agent = 'local',
command = { 'tmux', 'new-session', '-A', '-s', 'ghostty' } },
{ name = 'Workstation / bash', transport = 'agent', agent = 'workstation',
command = { '/bin/bash', '-l' } },
{ name = 'Workstation / tmux', transport = 'agent', agent = 'workstation',
command = { 'tmux', 'new-session', '-A', '-s', 'ghostty' } },
{ name = 'Home server / bash', transport = 'agent', agent = 'server',
command = { '/bin/bash', '-l' } },
{ name = 'Home server / tmux', transport = 'agent', agent = 'server',
command = { 'tmux', 'new-session', '-A', '-s', 'ghostty' } },
},
default_profile = 1, -- the real/local game host, not whichever remote link connects firstThe public mod contains none of these hostnames, addresses, or token paths.
The + menu and launcher discover the configured links automatically, and a
new window inherits the current terminal's link unless a profile explicitly
names another one.
Open /term config and expand Agent hosts. Enter a short routing ID, a
display name and an SSH target such as user@workstation, then choose Pair
over SSH. The target needs ghostty-agent installed and SSH key or
ssh-agent authentication; pairing is deliberately non-interactive, so the
plugin never sees or stores an SSH password. When the remote machine has
Tailscale, its tailnet IPv4 address is selected automatically. Otherwise enter
the private address on which its agent listens.
Run SSH from defaults to local; choose another already-connected agent ID
when that machine holds the SSH keys (for example, when the game itself runs
in a container).
If that service was started with a non-default --token-file, enter the same
remote path in the optional token-file box; the pairing command refuses a
missing file rather than generating a token that the running service does not use.
The SSH command asks ghostty-agent pair for one machine-readable line. The
token travels only inside SSH, is never placed in an argument, and is saved in
agent-hosts.lua under the plugin config directory with owner-only
permissions. Run /term reload after pairing. The host then appears in the
+ menu with generated bash and tmux profiles. Hosts created this way can be
removed from the same settings section; manually configured hosts remain
owned by lua/init.lua and are not rewritten.
QR codes remain useful for the agent's embedded WireGuard setup
(ghostty-agent wg add NAME), particularly for importing a tunnel into a
phone or another WireGuard client. They are not used as a substitute for SSH
pairing: a QR code cannot by itself make a machine reachable or authenticate
the user approving remote shell access.
Reload with /term reload.
lua/bell.lua shapes the visual bell: when a program rings (BEL), rings of
light spread from your character's feet and the terminal that rang glows.
CONFIG.world.shadows in lua/world.lua (Settings → Light → "Screens cast
shadows (experimental)", off by default) puts a thin board, a background
object only you see and with no collision, behind each world screen so it
casts a shadow and blocks sunlight. Experimental and untested in game: it
calls a game function found by signature, so a game patch can crash the game
while it is on; seen from behind, the board probably hides the screen
with the depth test on.
Run in game: /term theme catppuccin-latte recoloured the terminals and the
glass around them in one frame, and /term theme spaceghost put them back.
A theme colours the terminals (palette, background, foreground, cursor, selection) and the glass around them: the dropdown, windows, world screens, the toolbar popup's taskbar, tooltips and the settings window's accents.
| Theme | |
|---|---|
spaceghost |
the default: the look the plugin has always had |
gruvbox-dark |
gruvbox |
catppuccin |
Catppuccin Mocha |
catppuccin-macchiato, catppuccin-frappe, catppuccin-latte |
the other Catppuccin flavours (Latte is light) |
Pick one in Settings → Theme (hovering a name shows its colours; choosing
applies it at once), with /term theme <name> (/term theme lists them),
or with theme = '<name>' in your lua/init.lua copy. The choice is saved
in settings.lua.
Themes are Ghostty theme files, so any of the hundreds made for Ghostty
(or converted from iTerm2, e.g. iTerm2-Color-Schemes)
work as they are. Put the file in themes/ inside the config directory
(pluginConfigs/GhosttyDalamud/themes/, create it); a theme there replaces a
shipped one with the same name. The name is the file name without .theme
or .lua; Ghostty's own files have no extension and names with spaces are
fine (/term theme Gruvbox Light). /term theme reads the folder again.
The keys the plugin reads (every other Ghostty key is ignored, and a line it cannot read is skipped with a warning in the log):
# comments start with #
palette = 0=#1d1f21 # palette = N=COLOUR, N from 0 to 255
background = #000000 # colours are #rrggbb, rrggbb, #rgb or rgb
foreground = ffffff
cursor-color = #ffffff # unset: the cursor takes the foreground
cursor-text = #000000 # the glyph under a block cursor
selection-background = #444444 # unset: a selection inverts its cells
selection-foreground = #ffffff
Palette entries a theme leaves out keep libghostty-vt's defaults (the standard 256-colour cube and grey ramp above 15).
The Ghostty-FFXIV extension colours the glass UI. It lives in comments, so the file still loads in Ghostty:
# ffxiv: accent = #c8a05a
| Key | Used for | Left out |
|---|---|---|
accent |
the active tab's underline, unread dots, focused borders, tooltip borders, the settings badge | palette 3 |
accent-2 |
the grip on a world screen being moved | palette 6 |
ok |
where a stretched screen will land | palette 2 |
ink, ink-dim, ink-faint |
chrome text and icons: hovered or active, normal, exited | foreground, and it faded into the background |
glass-top, glass-bottom |
the glass body's gradient | background lifted, and darkened |
glass-flat |
the body with glass off | background |
glow |
the glow around the dropdown and world screens | palette 4 |
panel |
world screen backgrounds | background |
tooltip |
tooltip backgrounds | background |
tab |
active and hovered tab fills (drawn faint) | foreground |
close, full, popin, sleep |
a world screen's title buttons, hovered | palette 1, 4, 3, 5 |
close-idle, full-idle, popin-idle, sleep-idle |
the same, at rest | the hovered colour sunk into the background |
chip, chip-hot, chip-ink |
the toolbar popup's taskbar chips | background lifted, accent, foreground |
label, label-ink |
captions on screen (/term bell demo, /term theme) |
background, foreground |
bell |
the bell's custom accent colour (bell.preset = 'custom') while it is not set in Settings |
the bell's own default |
A theme can also be a .lua file returning the same keys:
return {
background = '#282828', foreground = '#ebdbb2',
palette = { [0] = '#282828', [1] = '#cc241d' },
ffxiv = { accent = '#fabd2f', glow = '#fe8019' },
}/term (also /tomestone and /tome, see host.commands):
| Command | What |
|---|---|
/term, /term toggle |
show or hide the drop-down |
/term new [n], /term window [n] |
a new tab, or a floating window, with profile n |
/term pin [here|me|target|orbit|ground] |
place the focused world panel or active tab; ground lays it at your feet and rotates its top with the camera's view |
/term unpin |
the focused world terminal goes back to the drop-down |
/term pet |
a terminal that floats beside your character |
/term order left|right|first|last|N|swap ID |
move the focused pet in the pet order: its slot beside you, and its place in the row the other pets form beside a focused panel (the ◀ ▶ arrows on a hovered pet's edges swap it with its neighbour; dragging a pet by its title bar onto another swaps those two, swap ID) |
/term pin hud [X Y] [DIST] |
dock the focused world panel (or the active tab) to the screen at X, Y (fractions 0..1; default where it shows); it floats just in front of the camera and sways a little as the camera turns (not yet observed in game) |
/term occluded on|off |
whether the focused world screen keeps running while unseen |
/term min [id], /term restore [id], /term focus id |
minimise, restore or raise a terminal |
/term send [#id] text, /term type [#id] text |
type into a terminal, with or without Enter |
/term bell [ripple|sonar|burst|aura|calm|custom|demo] |
preview the visual bell |
/term showcase, /term showcase off |
demo terminals and camera shots for screenshots; needs nothing on disk |
/ask [question], /ask new [question], /ask threads, /ask pin, /ask term [question] |
ask a local AI assistant in a chat panel with follow-ups (see Ask panel); /term ask is the same |
/term theme [name] |
switch the colour theme, or list the themes (see Themes) |
/term share [on|off|gallery|unlink|path] |
offer your latest screenshot (or path) to the gallery; on/off the prompt after screenshots; gallery opens the page; unlink forgets the link to your account (see Screenshots) |
/term shot [panel|full] [clean] |
a PNG of this frame with the terminals in it, offered to the gallery at once (see Screenshots) |
/term clip [seconds] [gif|mp4] [panel] [clean] |
record a few seconds; ghostty-agent encodes it with ffmpeg on the host |
/term config |
the settings window |
/term reload |
reload the Lua configuration |
/term selftest [list|all|suite...] |
deterministic checks inside the game, report in selftest/latest.json of the config directory (see docs/CI.md; not yet run in game) |
Keys (lua/init.lua, lua/keymap.lua): ctrl+</kbd> toggles the drop-down and <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd> the terminals in
the world. Inside a terminal: ctrl+shift+c /
v copy and paste (a mouse selection is copied on release, see
copy_on_select), ctrl+shift+t /
w open and close tabs, ctrl+tab switches tabs,
ctrl+= / - / 0 zoom.
The dropdown and floating terminals forward clicks, releases and drags to apps
that enable terminal mouse reporting, including Neovim tab buttons and panes.
Hold Shift to select terminal text instead.
After a reconnect that has lost mouse reporting, toggling Neovim's mouse
option off and back on restores it in an existing session. Updated agents
preserve these modes when replaying truncated output. /term mousetrace records
one minute of mouse coordinates and report metadata in the plugin log.
Every icon button, taskbar chip and setting explains itself in a tooltip
after the pointer rests on it for a moment (world screens included). The
texts are in lua/tooltips.lua, ready to be translated; untested in game.
Info bar entry (host.dtr.on_click): click toggles the drop-down,
right-click opens the popup, shift+click opens a window, ctrl+click shows the
world screens. The popup closes when it loses focus; Esc goes to
the terminal.
Still untested in game: only the host tests (tests/test_ask.*,
tests/test_ask_rich.lua and tests/test_ask_draw.nelua, with a scripted or
fake ImGui) have run it. It needs an almanac with threads
(almanac ask --stream-json, almanac threads).
The first in-game /ask ended the game process: the panel popped one more style
colour than it pushed, and the ImGui Dalamud ships does not check the depth
(fixed in 68728c9; tests/test_imgui_stack.py now guards every core draw
function). The panel has not been drawn in game since the fix, so it stays
untested here rather than verified.
/ask <question> (or /term ask, /agent ask) answers in a Ghostty glass
panel instead of a terminal: your question and the answer as chat bubbles,
the answer streaming in as it is written, with an input box for follow-ups.
/ask which retainers have full inventories?
/ask and which of them sell the most?
/ask new what's my next MSQ step?
-
Follow-ups. Each conversation is an almanac thread: the first question starts one (
almanac ask --new-thread), the next ones continue it (--thread ID), so the model sees what was said before. almanac keeps the threads (~/.local/state/almanac/threads/) and trims what it sends back to the model's context. The panel remembers the current thread across/term reloadand game restarts (ask-state.luain the config directory). -
In the panel: Enter sends, Shift+Enter (or Ctrl+Enter) starts a new line, Esc closes it. New starts a thread, Threads lists earlier ones (click one to continue it), Stop ends an answer, Pin floats the panel beside your character as a pet (the same as
/window adopt ask; "back to UI" returns it)./askalone shows or hides the panel. -
Rich answers (
lua/askmd.lua,lua/askview.lua): headings, bold, italic and struck-through text, bullet, numbered and task lists, tables, block quotes, horizontal rules, inlinecodeand fenced code blocks in the monospace font with a copy button, word-wrapped at the panel's width in the theme's colours. Text fades in as it streams. An answer is parsed once per change of its text and laid out once per width, and drawn with draw-list primitives only (core/ui.nelua:text_at,rect_at, ...), so a Lua error part way through cannot leave ImGui unbalanced; that answer is shown as plain bubbles instead, and the status line says why. -
Links (
lua/asklinks.lua), each on click only, with a tooltip saying what the click does:https://pages (bare,<...>or[label](url)) open in your browser through the agent's open-url path; other schemes are shown, never opened. Each answer ends with its sources.- Map coordinates such as
(X: 9.9, Y: 8.6)place a flag and open the map, in the zone or aetheryte the answer named before them, else where you are. - Names the game knows, looked up in its own sheets by the shim
(
shim/GhosttyDalamud/GameLinks.cs): a zone opens its map, an aetheryte or NPC is flagged on it, an item is linked into your chat input (never sent), a quest opens in the journal, a duty in the Duty Finder. Actions and statuses only explain themselves in a tooltip. Items, actions, statuses, quests and duties show the game's icon beside them. - A slash command in a code span (
`/term selftest`) goes into your chat input, not sent; the panel then offers Run, and only that runs it. Chat channels and emotes (/say,/tell,/p,/l1,/em, ...) are never run from the panel. - Two or three follow-up questions under the newest answer ask on click; a right-click asks in a new thread that links back ("from: ..." under the title, and in the thread list).
- The shim refuses every game action while you are in combat and before you are logged in, and none of them moves your character or uses an action.
Host tests only (
tests/test_ask_rich.luawith a fake game and a fake ImGui,tests/test_ask_draw.neluathrough the real core): not yet drawn or clicked in game, and the game-side calls (the map flag, the item link, the journal, the Duty Finder, the chat input) have only been compiled against Dalamud, never run. -
Game actions are off; the tick box in the panel (or
assistant.game_actions) adds--allow-game-actions, and XivMcp still asks you in game to confirm each action. The panel never approves almanac's own change tools (--stream-jsonnever prompts). -
Echo (
assistant.echo, off): the first paragraph of each answer is also printed in your chat log as an echo line only you see. -
How it runs: the core runs
CONFIG.assistant.stream(defaultalmanac ask --stream-json) plus the thread options,--and the question as one argument on a hidden session whose output goes tolua/ask.lualine by line instead of a screen. Its JSON lines are the protocol; the C# shim only adds the game links above. A/term reloadends a running answer (the thread keeps everything up to the last finished one). -
Never a pseudo console. A JSON object on one line can be longer than any console, and a ConPTY is a screen: it would wrap that line into rows and hand it back with CR/LF inserted, and the line would stop parsing. So the panel runs on pipes at both ends — through the agent it asks for a raw job (docs/JOBS.md, agent protocol version 4), and locally it runs the command itself on pipes (
core/sys/procpipe.nelua), never ConPTY. An agent too old for jobs, or one that refuses them (a Windows agent, until its job runner exists), gets the old PTY session instead, so the panel keeps answering. docs/WINDOWS.md has the Windows story, including what to do when almanac is not on the Windows machine. -
/ask term <question>, orassistant.ui = 'terminal'(Settings → Assistant), opens the terminal described below instead.
New and untested in game: only the host tests (tests/test_assistant.*)
have run it.
With assistant.ui = 'terminal' (or /ask term ...), /term ask <question> opens a terminal that runs a local AI assistant with
your question; /term ask alone opens its interactive session. The default
assistant is almanac, a separate project: almanac ask -- "<question>"
and almanac chat. It must be installed where the terminal's command runs
(the agent's machine, or the game's machine for a local ConPTY terminal).
Works from macros and hotbars:
/term ask what's my next MSQ step?
- The question is the rest of the line, passed as one argument and never
through a shell: quotes,
;,$(...)and the like reach the assistant as plain text. The chat line reaches the plugin cut at about 250 bytes; a character cut in half at the end is dropped. - The terminal stays open after the assistant exits (whatever
close_on_exitsays) and ends with[assistant exited]; close it like any terminal. If the command was not found (exit status 127, or an agent that refused to start it) it also prints a short hint. - Settings → Assistant (/term ask): on or off, where it opens (
pet, the default, beside your character, or a tab while no character is loaded;tab;window) and the transport (default: as your first profile, the agent, with a local ConPTY fallback on native Windows; oragent/conpty). - The commands themselves are argv lists in
lua/assistant.lua(CONFIG.assistant.chat,CONFIG.assistant.ask, question appended), shown read-only in the settings window. Copy the file into the config directory'slua/to point it at another program.
toggle_gamepad_button defaults to an empty string, leaving the controller to
FFXIV. You can opt in with select (the Xbox View button; on a DualSense,
Dalamud reports the touchpad click as select). Tap shows or hides
the drop-down; hold steps to the next terminal and repeats while held; double
tap goes to the previous one. Valid names: dpad_up dpad_down dpad_left dpad_right north south west east l1 l2 l3 r1 r2 r3 select start create. An
empty string disables it.
Controller input inside a focused terminal is off by default. Settings → Keys & controller selects one of these layouts:
| Layout | Intended use |
|---|---|
terminal |
Default: D-pad arrows, A/Cross Enter, B/Circle Escape, X/Square Tab, bumpers change tabs, triggers scroll |
steamdeck |
The default adapted for Steam Deck; rear buttons remain available to Steam Input |
community-emacs |
Readline/Emacs movement on the D-pad |
community-vim |
Vim h/j/k/l movement on the D-pad |
custom |
CONFIG.controller.mapping from your config |
Mapped buttons repeat for key: and text: bindings; terminal actions such
as new_tab, paste and next_tab fire once unless a mapping explicitly
sets repeat = true. Ghostty reads mapped buttons while a terminal is focused
without enabling Dalamud gamepad mode or blocking controller input to FFXIV.
The game still receives those button presses.
Layouts and their metadata live in lua/controllers.lua. A file with that
name in the plugin config directory takes precedence over the shipped module,
or a copied init.lua can register and select a layout:
local controllers = require('controllers')
controllers.add('mine', {
name = 'My layout', author = 'Name', community = true,
mapping = {
dpad_up = 'key:up', dpad_down = 'key:down',
south = 'key:enter', east = 'key:escape',
l1 = 'prev_tab', r1 = 'next_tab',
start = { action = 'new_tab', ['repeat'] = false },
},
})
config.controller = controllers.config('mine')Valid button names are the same as the global-toggle list above except
create, which is available only for the global toggle. Mapping values may be
key:<key> (with optional
ctrl+, shift+, alt+ or super+ modifiers), text:<text>, or any action
listed in lua/keymap.lua. Steam community layouts remain attached to FFXIV's
Steam app ID rather than to a Dalamud plugin; choose steamdeck here and use
Steam Input for rear-button or trackpad bindings. Community Lua layouts are
local configuration and are never downloaded or executed automatically.
create is the Create button of a DualSense or DualSense Edge, which the game
leaves unused. Dalamud's gamepad state has no such button, so the core reads
the controller's HID input reports itself (core/sys/dualsense_reader.nelua):
USB report 0x01 and Bluetooth reports 0x31 and 0x01 (simple mode),
vendor 054C, products 0CE6 and 0DF2. It opens the controller read-only
and shared, asks for a queue of only 2 reports on its handle, reads it
without waiting (one overlapped read, collected once per frame), and closes
it on unplug, when you pick another button, and when the plugin unloads.
Create only counts while the game's window is in front: the controller's
reports arrive whichever window has focus, and elsewhere Create is the
capture button of Steam, Game Bar and Remote Play. The default stays
select, so nothing changes without a DualSense. To switch, pick create
under Settings → Keys & controller, or set it in your lua/init.lua copy:
toggle_gamepad_button = 'create',Finding the controller is not free: listing and opening HID devices are
synchronous calls on the render thread (under Wine each is a round trip
through wineserver), and closing waits up to 1 s for the cancelled read.
While no controller is open, a search looks at a few HID devices per frame
and opens only those whose device path does not name another vendor or
product. After a search that found nothing the next one waits 3 s, then 6,
12, 24 and at most 30 s, so a controller that is off, unplugged, hidden (for
example by HidHide) or not exposed through hidraw costs one search every
30 s. A controller that fails to open with the same error twice (another
program holds it) is retried every 30 s. A device arrival notification
(CM_Register_Notification) starts a search within about a second and
resets the wait; without one, a controller connected later can take up to
30 s to be found.
The log shows DualSense 054c:0ce6 opened for the Create button and, with the
first report, which layout it sends. This HID path has only been tested on
the host with fake devices; it has not been observed in game, on Windows or
under Wine. Under Wine it relies on winebus exposing the controller through
its hidraw backend, which needs read access to the controller's
/dev/hidraw* node. Not measured or observed: whether a search still costs a
visible hitch, whether Wine delivers device arrival notifications, and how
late Create arrives under Wine. Wine hands device reads to winedevice, so an
overlapped read probably never completes at once: about one report is
collected per frame while the controller sends about 250 a second. With the
default queue of 32 reports every read would be about 130 ms old; the 2-report
queue should keep it within a frame or two. That is inferred from how Wine
handles overlapped reads, not observed.
Everything runs on your machines. From the code: the plugin connects only to
the agent address you configure, sends no telemetry, and logs only to
Dalamud's local log. The one exception is a screenshot you choose to share:
clicking Share sends that image (and, if you ticked the credit box, your
character's name and world) over HTTPS to
https://spacegho.st/mods/ffxiv/term/gallery/api/upload, signed with the
link to your account on the site (made on the first Share through
https://spacegho.st/mods/ffxiv/term/vote/api/device/). It is shown
publicly only after the site owner approves it. The plugin reads your
character's name only to show it in the prompt. The agent listens only on the address you pass (default
127.0.0.1:7777) and requires the token (on Windows kept in
%APPDATA%\ghostty-agent\token with an owner-only DACL); the stream is not encrypted, so
tunnel it for remote use. Migrated config copies are written owner-only.
/term showcase hides your own terminals while it runs.
At build time only, tools/fetch-vendor.sh downloads the pinned sources
(GitHub, lua.org, goatcorp's dalamud-distrib), and tools/build.sh sets
DOTNET_CLI_TELEMETRY_OPTOUT=1.
lua/changelog.lua is the changelog. It is what players read in the Changelog
tab of Settings in game, and CHANGELOG.md is generated from it:
tools/changelog.py # rewrite CHANGELOG.md from lua/changelog.lua
tools/changelog.py --check # what CI runs: fails, with a diff, when they driftThe convention, and it is not optional: every change a player can see adds or
edits its entry in lua/changelog.lua in the same commit as the change, and
regenerates CHANGELOG.md. Never edit CHANGELOG.md by hand.
The status word on an entry means exactly what the tab in game shows, and nothing more:
| Status | Shown | Means |
|---|---|---|
next |
SOON | still being built; not merged. |
beta |
BETA | merged, but not yet verified in game. |
new / fix |
NEW / FIX | in a numbered release: seen working in game. |
An entry only loses its beta and moves into a numbered release once the thing
it describes has been observed working in the game — the same standard the rest
of this README holds ("Limitations and unverified behaviour" below). Say what
is unverified in the entry itself; do not write around it.
tools/ci/run.sh test runs the check first, before any toolchain work, and the
changelog job in .github/workflows/ci.yml runs it on its own in seconds.
(That workflow ignores Markdown-only pushes, so an edit to CHANGELOG.md alone
starts no run; drift is caught by the next push that touches code.)
tools/release.sh test # the next testing build, from master as it is
tools/release.sh stable X.Y.Z # the stable release X.Y.ZOne command: it checks the tree and CI, writes the version everywhere it lives, dates
the changelog, tags, pushes, waits for the Release workflow, and verifies the published
files and the live listing. -n is a dry run. See docs/RELEASING.md.
Tested on the host (tests/run.sh): the libghostty-vt binding, cell renderer,
key encoding, DualSense report parsing, Lua policy, agent protocol and server,
the plugin's activation state machine, its command / info bar / IPC registration and the config
migration (tests/test_hostsurface.nelua, tests/test_migrate.*), the
per-platform defaults and local fallbacks (tests/test_platform.*), /term ask (tests/test_assistant.*; untested in game), the /ask panel (tests/test_ask.*; untested in game), themes (tests/test_themes.*; run in game) and tooltips (untested in game: they need a pointer resting on a control, which nothing here can drive) and the
agent's shared pure logic (tests/test_agent_logic.nelua) and glyph coverage
-- emoji, wide characters, the fallback font chain and the tofu box for a code
point no font has (docs/GLYPHS.md,
tests/test_glyphfb.nelua). Checked in game and rendering: box drawing, block
elements, braille, CJK, emoji, the powerline separators (U+E0B0..E0BF, drawn as
shapes by core/boxdraw.nelua), Nerd Font icons in the BMP private-use area and
Nerd Font icons above U+FFFF (U+F05A0, U+F0A0F), which can only come from
core/glyphfb.nelua because Dalamud's ImGui stores 16-bit code points. An
unassigned code point (U+10FFFD) drew the tofu box with its hex digits, which is
what makes the rest of that list mean something. Both C#
projects, the Windows DLLs and ghostty-agent.exe compile.
The standalone plugin, its info bar entry and the IPC-only Umbra widget have not been observed in game. What they assume:
| Assumption | Symptom if wrong |
|---|---|
Pi.AssemblyLocation names the dev folder, so ghostty_core.dll and lua/ are found beside it |
NativeLibrary.Load throws in Plugin(); check the path in the Dalamud error |
The hand-written GhosttyDalamud.json (API level 15) is enough for a dev plugin |
Dalamud refuses the manifest; compare with a DalamudPackager-generated one |
Pi.ConfigDirectory exists after first access and its parent is pluginConfigs |
the migration finds no legacy home; GHOSTTY_HOME overrides the config dir |
GetModuleHandleA("ghostty_umbra.dll") and the Local\ghostty-core-<pid> mutex behave under Wine as on Windows |
core/sys/procguard.nelua; a leaked mutex blocks reloads until the game restarts |
Renaming a mapped ghostty_umbra.dll under Wine works |
the migration logs could not rename; it only runs after the old core is gone, so it should not be mapped |
IPC of (int, int) and nint between plugins needs no conversion |
the widget stays "ghostty offline" while the plugin runs; the log shows an IPC type error |
| Pushing Dalamud's mono font from inside Umbra's popup draw is fine | popup text in the wrong font or an ImGui assert |
Pi.DalamudAssetDirectory holds UIRes/NotoSansCJK-Regular.ttc, which the core reads for CJK ideographs (docs/GLYPHS.md) |
ideographs outside the merged kana and punctuation ranges draw as hex-digit boxes |
Dalamud's cimgui.dll exports ImFont_FindGlyphNoFallback (it does in 15.0.3.5) or ImFont_FindGlyph |
a BMP glyph the terminal font lacks draws as U+FFFD instead of reaching the fallback atlas |
Registering commands, the info bar entry and IPC from UiBuilder.Draw is allowed |
a Dalamud thread-safety exception in the log |
IDtrBarEntry.OnClick positions are screen coordinates |
the info bar popup opens away from the entry |
The UI-hide defaults (host.keep_visible) match what Umbra did |
change them in Settings → Info bar & hidden UI |
| Panel lights survive a logout and login (world panels, pets, animation and world pins wait for a character) | lights missing or stale after logging back in |
Panel shadows (experimental, off by default): BgObject.Create's signature still matches, fun_b0_m0766.mdl is 4 x 3 yalms with its origin at the bottom centre, creating and freeing background objects from the draw callback is safe, and the game does not free them itself on a zone change |
a crash with the option on, boards in the wrong place or size (CONFIG.world.shadows.model_*), or no shadow |
| Toolbar placement survives the widget becoming IPC-only (same file, assembly name and widget id) | re-add the Ghostty widget in Umbra |
| Per-frame IPC (status and popup draw every frame, exceptions while offline) is cheap enough | frame time rises with the widget; a cheaper status channel is needed |
| The info bar popup has no Esc-to-close, so Esc reaches the terminal | see popup.close_on_blur |
Windows (native): nothing has been run on real Windows. Observed only
under Wine on Linux, with tests/smoke_agent_windows.nelua against
ghostty-agent.exe in a throwaway prefix:
| Check | Proton 11 (Wine 11) | Wine XIV staging 10.8 |
|---|---|---|
token handshake, OPEN cmd.exe |
yes | yes |
typed echo hi comes back, env override, PWD as working directory |
yes | no: this Wine gives a pseudo console's child no console handles when they are passed as null (newer Wine and Windows do), so cmd.exe exits at once |
| ATTACH replay from a second connection, session kept after the client disconnects, LIST | yes | no (the session had exited) |
| exit status, a command that cannot start refused | yes | refused: yes |
| Win32 clipboard round trip | no: headless, OpenClipboard never returned; the agent gave up after 1 s and answered "clipboard unavailable" |
yes |
| resize | not checked (Wine has no mode con) |
not checked |
Not observed anywhere: the agent on Windows itself (console window, start on login, Windows Defender or SmartScreen reactions to an unsigned exe), the plugin's Windows defaults and local fallbacks in game, clipboard on Windows, the custom-repository install and the dev-plugin path on Windows.
Also: the DualSense Create button (toggle_gamepad_button = 'create') is
tested only against fake HID devices, not with a controller, on Windows or
under Wine (see Controller); the conpty transport under Wine is untested;
the Superlogical transport is a placeholder until its protocol is public; the
agent stream is not encrypted.
Everything the core logs goes to Dalamud's log (/xllog, or dalamud.log in
the launcher's directory) prefixed with [Ghostty]. A good start should look
like this (expected from the code, not yet seen in game):
[Ghostty] ghostty core starting: install=...\GhosttyDalamud config=...\pluginConfigs\GhosttyDalamud
[Ghostty] migrated from ...\Umbra/ghostty: ... (first start after upgrading only)
[Ghostty] config loaded: 4 profiles, toggle key "grave"
[Ghostty] command /term registered (and /tomestone, /tome)
[Ghostty] ghostty core active
[Ghostty] cimgui bound
waiting: the Umbra-hosted core (ghostty_umbra.dll) is loaded– an oldUmbra.Ghostty.dllstill loaded the old core. The plugin retries every 2 s and activates once it is gone: install the widget-only build and restart Umbra.waiting: another ghostty core is active in this game process– another copy of the core holds the per-process mutex, or a previous one leaked it; restart the game.suspended:– the old core appeared while the plugin was active. The plugin stops drawing and keeps its sessions until the old core unloads.
Linux with XIVLauncher.Core as a flatpak only; not needed, and not usable, on
Windows. tools/crash-restart.nelua
builds crash-restart.exe, which finds the "Dalamud Crash Handler" dialog and
chooses "Restart normally" then "Restart". tools/build.sh does not build it:
build/dist/ghostty-agent --listen 127.0.0.1:7777
tools/install-dev.shThe agent creates its token file on first start. Add the DLL location printed
by the installer in /xlsettings under Experimental, Dev Plugin Locations;
then enable it under /xlplugins, Dev Tools. The installer prints a Wine
Z: path. It is not a general Windows installer.
On native Windows, copy the complete plugin folder into a suitable location
and add its GhosttyDalamud.dll path through the same developer settings.
Native Windows should use the local ConPTY transport. Wine should use the
separately running agent. Neither path is certified by Linux host tests.
For the optional Umbra widget, stage it with tools/install-dev.sh --widget,
add Umbra.Ghostty.dll in Umbra's plugin settings, and add its toolbar widget.
The standalone plugin is designed not to require Umbra.
tools/crash-restart.sh answers the crash dialog, which covers a crash Dalamud
catches. It cannot help with a crash that takes the process down without a
dialog, a machine that has rebooted, or a game nobody has started yet.
tools/ffxiv-session.sh covers those:
tools/ffxiv-session.sh status # game, launcher, whether XivMcp answers
tools/ffxiv-session.sh start # launch it, and wait until XivMcp answers
tools/ffxiv-session.sh install # a systemd --user unit that keeps it upstart finishes when XivMcp answers on its port, not when the process exists,
because the game is not usable for a while after that.
Logging in stays XIVLauncher's own saved login: tick Auto-login in
XIVLauncher once, by hand, and the credentials live in your keyring. The script
never sees them, and start refuses with an explanation when auto-login is off
rather than typing into a login box. A machine that must be logged into by hand
cannot be brought back unattended, which is the point of the script.
Untested: written against XIVLauncher.Core as a flatpak, but not yet run on a machine that has one.
User overrides belong in <Dalamud config>/pluginConfigs/GhosttyDalamud/,
not in the source checkout. Typical roots are %APPDATA%\XIVLauncher on
Windows and ~/.xlcore under XIVLauncher.Core. The plugin receives actual
installation and configuration directories from Dalamud.
Use /term config for settings saved to settings.lua. Copy lua/init.lua
or lua/keymap.lua into the configuration directory's lua/ for more extensive
overrides. User modules take precedence over shipped modules. /term reload
reloads configuration. Existing overrides are preserved, so an older override
can retain an older default profile.
The shipped profiles include a POSIX shell through the agent, optional tmux, Windows PowerShell, and cmd. Do not assume optional executables are installed. Agent profiles require a running agent and matching token. A Windows-only installation does not need an agent for a local ConPTY terminal.
- Agent: TCP connection to the configured IPv4 address and port.
localhostmaps to loopback; arbitrary DNS names and IPv6 are not currently implemented. Sessions can outlive client disconnects while the agent remains running. - ConPTY: Local Windows pseudo-console. Availability depends on the runtime. Large-input, process-failure and shutdown behavior still need target tests.
- SSH: An executable launched inside a terminal, not a separate transport.
For a remote agent, use a protected tunnel such as
ssh -L.
The Superlogical transport entry is a placeholder, not a working integration.
A local-agent configuration uses an empty inline token and a per-user token file; it does not contain the developer's credentials. Set a remote address and token file explicitly when the agent runs elsewhere.
/term also has the aliases /tomestone and /tome.
| Command | Purpose |
|---|---|
/term, /term toggle |
Show or hide the drop-down |
/term new [n], /term window [n] |
New tab or floating window using profile n |
/term pin [here|me|target|orbit|ground], /term unpin |
Place or remove a world panel |
/term pet |
Create a following world panel |
/term occluded on|off |
Control whether a hidden world terminal keeps running |
/term min [id], /term restore [id], /term focus id |
Manage terminal visibility |
/term send [#id] text, /term type [#id] text |
Send terminal input with or without Enter |
/term bell [style] |
Preview a visual bell |
/term showcase, /term showcase off |
Start or stop screenshot demonstrations |
/term config, /term reload |
Edit or reload configuration |
/term reload-core |
Request a native core reload through the loader |
Default keys: Ctrl+backquote toggles the drop-down; Ctrl+Shift+backquote toggles
world panels. Ctrl+Shift+C/V copies and pastes, Ctrl+Shift+T/W opens and closes
tabs, Ctrl+Tab changes tabs, and Ctrl+=/-/0 changes zoom. Mouse selection may
copy automatically according to copy_on_select. See lua/keymap.lua.
The info-bar entry opens the drop-down on click, the popup on right-click, a window on Shift+click, and world screens on Ctrl+click. The optional widget uses the same plugin services rather than another terminal core.
Controller gestures are off by default. Opt in with select to tap to toggle,
hold to advance, and double-tap to go back. On a DualSense, select is the
touchpad click, not Create. The optional create setting uses Windows HID
reports; its Wine/controller behavior remains unverified. The normal default
does not open a HID device.
World placement, animation, lighting and occlusion are implemented but still require validation in game. Shadow boards are off by default and use a game function resolved by signature. A game patch may invalidate that function; do not treat the feature as safe merely because host tests pass. Keep it off until its specific game/Dalamud combination has been tested.
Screenshot demonstrations are not proof of runtime compatibility. No screenshots or in-game test results are supplied as part of this maintenance pass.
The agent stream is not encrypted. A token is authentication, not encryption. Keep the listener on loopback or use a protected tunnel. Do not expose it to the public internet or reuse a test token. Terminal sessions can execute commands with the agent or game process's privileges. Lua overrides are trusted code, not a sandbox for strangers' scripts.
Terminal output, clipboard content, logs, settings and migration copies can contain private data. Review them before sharing diagnostics or screenshots. Do not commit runtime configuration or tokens. Check release binaries and PDBs for build paths and metadata before publishing them.
Migration from the previous Umbra-hosted layout is implemented in lua/migrate.lua.
Back up the old configuration before testing migration. It moves user state and
changed overrides into the plugin's own configuration directory; inspect the
migration status before deleting a backup.
Maintained by Spaceghost. Maintainer-only local
identity setup is available as tools/configure-identity.sh; contributors should
retain their own chosen attribution. Editing current files does not erase their
old versions or commit metadata. History cleanup is a separate operation.
Built on Ghostty/libghostty-vt, Nelua, Lua, Dalamud, gc-cimgui, FFXIVClientStructs and Umbra. Preserve their licenses and contributor attribution when distributing builds. Do not infer a project license or official approval from dependency licenses or a successful build.
Named layouts can read canonical pin arguments from the optional field in window.list and panel.list. Fixed anchors include position and orientation relative to the current player; pins in another territory report null. at ANGLE DIST HEIGHT [YAW PITCH] restores that relative pose, and existing three-argument commands retain their behavior. Host coverage: tests/test_plate_placement.lua and the IPC frame suite. In-game behavior remains unverified.
SVG app icons are rendered by the existing host background icon job when a renderer is available. Cached icon names now include a fingerprint of the source path, nanosecond modification metadata (where supported), source size and raster size, so app updates and theme changes select a fresh PNG. Host coverage includes source identity, metadata changes and actual ImageMagick SVG rendering in tests/test_desktop_entries.nelua. The compositor-specific call site still needs compilation with matching libwlroots-0.20; Sized app-list requests now route through refresh IPC; arbitrary XivDesktop SVG-only icon routing remains unfinished.
tools/check-wayland-source.sh analyzes the actual Wayland-enabled agent and generates C even on hosts without wlroots 0.20. This verifies the sized-icon callback and dispatch at the Nelua type level; it does not compile/link the native output or establish compositor runtime behavior. The current host has wlroots 0.19, so matching native integration remains outstanding.
Existing Neovim panes can be opened as separate live world terminals, with nested host tabs grouped by colour and proximity and a nameplate on every panel. See setup and current boundaries.