vaikhari वैखरी
posting

vaikhari

वैखरी · “speech spoken aloud”

Write once, post to X and LinkedIn from the terminal: a live preview of each, drafts, a schedule, and an agent that drafts for you. Free.

चत्वारि वाक् परिमिता पदानि तानि विदुर्ब्राह्मणा ये मनीषिणः ।
गुहा त्रीणि निहिता नेङ्गयन्ति तुरीयं वाचो मनुष्या वदन्ति ॥

Speech has four measures. Three lie hidden and do not stir; the fourth is what people speak. Ṛgveda 1.164.45
v0.5.0 latest9 releases4 decisions recordedMIT license

#vaikhari

Write once, post to X and LinkedIn from the terminal. One editor with a live preview of how each network will show your post, drafts, a schedule, and an AI agent that can draft posts for you (you approve every one). Free: LinkedIn through its free API, X through its own share page with one click.

vaikhari's Compose tab: the post on the left, live previews of how X and LinkedIn will show it on the right, with the character counts

The Queue: an agent's post waiting for your approval, with its reason, and a post scheduled for tomorrow

Screenshots use vaikhari demo: a made-up account.

Vaikhari (वैखरी) is Sanskrit for speech spoken aloud: the last of speech's four stages, the one other people hear.

#What it does

#Install

With kosha:

kosha install vaikhari

Or with the installer, which downloads the release binary into ~/.local/share/vaikhari (or builds it with Go) and links ~/.local/bin/vaikhari:

curl -fsSL https://raw.githubusercontent.com/Theyashsawarkar/vaikhari/main/install.sh | bash

From source: make && make install (Go 1.26+).

As a tmux plugin (TPM), prefix B opens it in a popup:

set -g @plugin 'Theyashsawarkar/vaikhari'

The plugin runs the vaikhari on your PATH, or builds its own copy with Go the first time.

Optional: wl-clipboard (Wayland) or xclip (X11) for images on X and copying links, notify-send (libnotify) for notifications, secret-tool (libsecret) to keep the LinkedIn sign-in in your keyring.

Try it first without any account: vaikhari demo runs it with a fake LinkedIn in a throwaway folder (nothing is posted, X isn't opened).

#Set up LinkedIn

vaikhari posts to LinkedIn through an app of your own: free, self-serve, about two minutes, once (ADR 4).

Open vaikhari's Settings tab (Tab until you're there, or 5). It has the steps, opens the pages and copies the redirect URL for you, and takes the Client ID and Client Secret right there: Enter edits a field, Ctrl+S saves and signs you in. It's read-only until you do, so stray typing changes nothing. From a shell, vaikhari auth linkedin --setup does the same.

The steps:

  1. At linkedin.com/developers/apps/new create an app: any name, a LinkedIn page as its company (LinkedIn needs one; one you create works) and a logo.
  2. On the Products tab add Share on LinkedIn and Sign In with LinkedIn using OpenID Connect (both approved at once).
  3. On the Auth tab add http://localhost:8723/callback to "Authorized redirect URLs", and copy the Client ID and Primary Client Secret into vaikhari.

Then your browser opens on LinkedIn's sign-in. LinkedIn's sign-in lasts 60 days and can't be renewed silently: the screen's top right shows the days left, turning yellow in the last week, and Space , l (or vaikhari auth linkedin) signs in again.

vaikhari posts to your personal profile. Company pages need LinkedIn's review and aren't supported.

#Posting to X: one click

X has no free API any more, so vaikhari never logs in to X. When a post goes out:

  1. X's share page opens in your browser with the post filled in (the first image, if any, is on your clipboard: Ctrl+V pastes it).
  2. You press Post there.
  3. Back in vaikhari, press Enter. Paste the post's link first if you want it kept; for a thread, the link makes the next part a reply to it.

Esc leaves it for later (it waits in Queue, Space p x opens it again); Ctrl+K skips X for that post. A scheduled X post can't go out without you: at its time a notification offers to open it.

#The screen

vaikhari (or prefix B in tmux) opens on Compose, in the editor:

Tab and Shift+Tab go through the tabs from anywhere, even while you write (H / L too, outside the editor): what you wrote stays.

The top right says who LinkedIn posts as (and days left) and that X is one click. Tabs count what's in Queue and Drafts.

#In your browser

vaikhari web opens the same posts, drafts, schedule and approvals as a page in your default browser, at http://127.0.0.1:8724 (--port N for another, --no-open to only print the address, --demo for the fake LinkedIn).

It's only for you: it listens on 127.0.0.1, checks the Host header, and every API call needs a token that only the page it serves holds. It delivers scheduled posts while it runs, like the terminal screen, with the same notification when an X post is due.

#Keys

vaikhari uses the vim grammar every Vayu tool shares (vyakarana): Compose opens in INSERT, in the editor, where the Ctrl keys work as before; Esc goes to NORMAL, where keys are commands and typing changes nothing. Coming back to Compose you're in the mode you left it in (Tab while writing writes again; H / L from NORMAL stay in NORMAL). Space is the leader: press it and a box lists what can follow (Space p posts, schedules, saves or sends again; Space n picks the networks; Space a adds an image or a new post; Space t switches tabs; Space , settings and LinkedIn's sign-in). H / L switch tabs (Tab and 1–5 too). Space Space searches every action, ? shows every key. Deleting or cancelling asks first, and only y says yes.

Keys that moved say where they went for one release: in the lists p → Space p p, t → Space p t, c → dd, v → o. o now opens the post's link (X's page is Space p x), r reloads (sending again is Space p r), L is the next tab (LinkedIn's sign-in is Space , l).

**Everywhere**
KeysWhat it does
L or TabSwitch to the next tab
H or Shift+TabSwitch to the previous tab
r or Space rReload the lists
? or Space ?Show every key
q or Space qQuit (what you were writing stays, as a draft)
Space ,Settings…
Space , lOpen LinkedIn's sign-in again (it lasts 60 days; Settings sets it up)
Space SpaceSearch every action and run one (the palette)
Space tTabs…
Space t c or 1Switch to Compose
Space t q or 2Switch to Queue
Space t d or 3Switch to Drafts
Space t p or 4Switch to Posted
Space t s or 5 or Space , sSwitch to Settings

Compose

KeysWhat it does
i or a or EnterEdit the post (INSERT: type it)
Space aAdd…
Space a i or Ctrl+oAdd an image (a path; an empty one removes them)
Space a n or Ctrl+nStart a new post (the current one stays as it was saved)
Space nNetworks…
Space n x or Ctrl+xToggle posting to X
Space n l or Ctrl+lToggle posting to LinkedIn
Space pPost…
Space p p or Ctrl+sPost it now (LinkedIn goes out, X opens in your browser; asks first)
Space p t or Ctrl+tSchedule it (tomorrow 9am, fri 6pm, in 2h...)
Space p d or Ctrl+dSave it as a draft
While typing
Ctrl+sPost it now (asks first)
Ctrl+tSchedule it
Ctrl+dSave it as a draft
Ctrl+x or Ctrl+lToggle posting to X / LinkedIn
Ctrl+oAdd an image
Ctrl+nStart a new post
Tab or Shift+TabSwitch tabs (what you wrote stays)
EscLeave the editor (NORMAL: the other keys work then)

Queue, Drafts, Posted

KeysWhat it does
j or DownMove to the next post
k or UpMove to the previous post
g g or HomeJump to the first post
G or EndJump to the last post
Enter or e or Space e eEdit the post in Compose (Posted: open its link)
o or Space o bOpen the post's link in the browser
y or Space y yCopy the post's link
d d or Space d dDelete the draft, or cancel a scheduled or waiting post (asks first)
aApprove an agent's post (asks first)
nDecline an agent's post
Space pPost…
Space p pPost it now (asks first)
Space p tSchedule it, or move it to another time
Space p rSend a post LinkedIn refused again
Space p xOpen it on X's page to press Post (and confirm it after)

Approving an agent's post

KeysWhat it does
y or Ctrl+sApprove it as asked (posts on every network it names)
1Approve it for LinkedIn only (when it asks for both)
2Approve it for X only (when it asks for both)
tSchedule it: approve it for another time
e or i or EnterEdit it first (Ctrl+s approves your version, Esc comes back)
Tab or Shift+TabSwitch to the next / previous capsule: the post, each network, each image
oOpen the image full size
j or kScroll the post when it's longer than its frame
nDecline it (nothing is posted, the agent is told)
q or EscLeave it for later (it waits in Queue)

Settings

KeysWhat it does
j or kMove to the next / previous field
EnterEdit the field (Enter finishes, Esc cancels it)
Ctrl+sSave the settings (signs in to LinkedIn if it needs that)
Ctrl+lOpen LinkedIn's sign-in (saves your changes first)
Ctrl+oOpen LinkedIn's page for creating your app
Ctrl+yCopy the redirect URL for your LinkedIn app
EscLeave Settings for Compose

While X waits for your click

KeysWhat it does
While typing
EnterConfirm it's posted on X (paste its link first for a thread's next part)
Ctrl+oOpen X's page again
Ctrl+yCopy the image to your clipboard again
Ctrl+kCancel X for this post (LinkedIn is unaffected)
EscLeave it for later (it waits in Queue)

vaikhari web

KeysWhat it does
While typing
Ctrl+EnterPost it now, or schedule it when it has a time
Ctrl+sSave it as a draft
EscLeave the open window

#From the shell

vaikhari post "Shipped it #golang"                 # both networks (or config's `networks`)
vaikhari post --linkedin "Only on LinkedIn"
vaikhari post --x --image shot.png "With a picture"
vaikhari post --at "fri 6pm" "Later"               # scheduled
vaikhari post --draft "Not yet"
echo "From a file" | vaikhari post -               # text on stdin
vaikhari check "Will this fit?"                    # X count and thread, LinkedIn count and fold
vaikhari list [draft|scheduled|approval|ready|posted|failed]
vaikhari approve [ID]                              # an agent's post (the oldest waiting)
CommandWhat it does
vaikhariThe screen (--popup KEY: in a tmux popup, KEY closes it)
vaikhari post TEXTPost (--x, --linkedin, --at WHEN, --image PATH repeated, --draft); for X it opens the page and asks you to confirm
vaikhari check TEXTHow the text fits each network
vaikhari list [STATUS]Your posts, one per line
vaikhari approve [ID]Answer an agent's post
vaikhari auth linkedin [--setup]Sign in to LinkedIn (--setup: enter the app's id and secret)
vaikhari auth status / logoutWhat's signed in / sign out of LinkedIn
vaikhari service install|remove|statusThe background service that publishes scheduled posts
vaikhari daemonThe same, in the foreground
vaikhari mcp [--requester NAME]The MCP server for agents (stdio)
vaikhari doctorCheck the setup: LinkedIn, clipboard, notifications, the service
vaikhari web [--port N] [--no-open] [--demo]The same in your browser
vaikhari demoTry it with a fake LinkedIn
vaikhari keybindingsThe keys, for Vayu's keybinding search
vaikhari --versionThe version

Times (--at, Ctrl+T, Space p t) read the way people write them: in 2h, tomorrow 9am, fri 6pm, next tue 10:00, tonight, 3 nov 10:30, 2026-11-03 18:00. A day without a time means 9:00.

#The schedule

Scheduled posts go out while vaikhari runs (the screen, vaikhari mcp), or at any time with the background service:

vaikhari service install      # ~/.config/systemd/user/vaikhari.service, started now and at login
journalctl --user -u vaikhari -f

At a post's time, LinkedIn goes out by itself and you get a notification; X waits for you (the notification's "Open in browser" opens it). A post is claimed before it's sent, so the screen, the MCP server and the service never publish one twice.

#For AI agents (MCP)

claude mcp add --scope user vaikhari -- vaikhari mcp --requester "Claude Code"
ToolWhat it does
post_checkLengths, X's thread split, LinkedIn's fold: to fit a post before proposing it
post_draftSave a draft you finish in vaikhari
post_publishPropose a post, now or send_at later: you approve it first (a tmux popup on the agent's pane, and a notification), and may edit or decline it; the call waits up to 10 minutes and reports what happened
post_listYour posts and their links
post_accountsLinkedIn's sign-in and days left; X's one click

The approval reads as one sentence ("Claude Code wants to post publicly, as you, on 2 networks"), then what you asked and labels for what's at stake (public, images, now or when). Beside the post, exactly as it goes (with where LinkedIn folds it and where X's thread breaks marked), each network's facts: who it posts as, its length against the limit, where LinkedIn's "see more" cuts it, X's thread, how it goes out. Above the post, capsules (Tab, Shift+Tab) switch between the post, each network's preview and each image, sharp in kitty (even in a tmux popup; other terminals get colour half-blocks), and o opens the image full size. 1 / 2 approve it for one network, t for another time. After you answer, the popup says what happened and closes. Narrow, the facts stack above the post.

Agents never post on their own, and are told X needs your click. What they did is logged in ~/.local/state/vaikhari/agent.log.

#Configuration

~/.config/vaikhari/config.toml (written by vaikhari auth linkedin --setup, private to you):

networks = ["x", "linkedin"]   # ticked in a new post

[linkedin]
client_id = "..."
client_secret = "..."
port = 8723                    # the redirect: http://localhost:<port>/callback
version = "202607"             # LinkedIn API version (YYYYMM); LinkedIn retires each after about a year

[x]
name = "Your Name"             # shown in the X preview (default: your LinkedIn name)
handle = "you"                 # shown as @you in the X preview
EnvironmentWhat it does
VAIKHARI_HOMEKeep config, posts and state under one folder
VAIKHARI_OPENERThe program that opens links (default xdg-open)
VAIKHARI_NO_KEYRINGKeep the LinkedIn sign-in in a file, not the keyring
VAIKHARI_LINKEDIN_URLTalk to another LinkedIn (the tests' fake)
NO_NERD_FONTSquare key caps instead of Nerd Font round ones

tmux plugin options (set before TPM's run line):

OptionDefaultWhat it does
@vaikhari-keyBKey after the prefix (none: no key)
@vaikhari-width / @vaikhari-height90% / 88%Popup size
@vaikhari-title vaikhari Popup title
@vaikhari-launcherYour own popup command instead of display-popup

#Files

PathWhat
~/.config/vaikhari/config.tomlSettings and your LinkedIn app (0600)
~/.local/share/vaikhari/vaikhari.dbYour posts (SQLite, 0600)
keyring, or ~/.local/share/vaikhari/linkedin.tokenThe LinkedIn sign-in
~/.local/state/vaikhari/agent.logWhat agents asked for, and your answers
~/.config/systemd/user/vaikhari.serviceThe background service (service install)

#How it works

One Go binary: the screen (Bubble Tea), the CLI, the MCP server and the service share internal/app, which keeps posts in SQLite and moves them between draft, approval, scheduled, ready (X waits for your click), posted, failed, cancelled and declined only through checked transitions. internal/post knows each network's rules (X's weighted count and thread splitting, LinkedIn's "little text" escaping and hashtags), internal/linkedin the API, and internal/fake a fake LinkedIn for the tests and vaikhari demo. Decisions are recorded in docs/adr.

#Troubleshooting

#License

MIT