Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

lemonade

> 编程语言
Open source

Lemonade is a remote utility tool. (copy, paste and open browser) over TCP.

726 stars0 likes0 views
WebsiteGitHub

About

Lemonade is a remote utility tool. (copy, paste and open browser) over TCP.

Lemonade

remote...lemote...lemode......Lemonade!!! :lemon: :lemon:

Lemonade is a remote utility tool. (copy, paste and open browser) over TCP. Maintainers wanted

See https://github.com/lemonade-command/lemonade/issues/25

Installation

bash
go get -d github.com/lemonade-command/lemonade
cd $GOPATH/src/github.com/lemonade-command/lemonade/
make install

Or download from latest release

Example of use

For example, you use a Linux as a virtual machine on Windows host. You connect to Linux by SSH client(e.g. PuTTY). When you want to copy text of a file on Linux to Windows, what do you do? One solution is doing cat file.txt and drag displayed text. But this answer is NOT elegant! Because your hand leaves from the keyboard to use the mouse.

Another solution is using the Lemonade. You input cat file.txt | lemonade copy. Then, lemonade copies text of the file to clipboard of the Windows!

In addition to the above, lemonade supports pasting and opening URL.

Usage

…

On server (in the above, Windows)

bash
$ lemonade server

Client (in the above, Linux)

bash
# You want to copy a text
$ cat file.txt | lemonade copy

# You want to paste a text from the clipboard of Windows
$ lemonade paste

# You want to open an URL to a browser on Windows.
$ lemonade open 'http://google.com'

Configuration

You can override command line options by configuration file. There is configuration file at ~/.config/lemonade.toml.

Server

toml
port = 1234
allow = '192.168.0.0/24'
line-ending = 'crlf'
  • port is a listening port of TCP.
  • allow is a comma separated list of a allowed IP address(with CIDR block).

Client

toml
port = 1234
host = '192.168.x.x'
trans-loopback = true
trans-localfile = true
line-ending = 'crlf'
  • port is a port of server.
  • host is a hostname of server.
  • trans-loopback is a flag of translation loopback address.
  • trans-localfile is a flag of translation localfile.

Detail of trans-loopback and trans-localfile are described Advanced Usage.

Advanced Usage

trans-loopback

Default: true

This option works with open command only.

If this option is true, lemonade translates loopback address to address of client.

For example, you input lemonade open 'http://127.0.0.1:8000'. If this option is false, server receives loopback address. But this isn't expected. Because, at server, loopback address is server itself.

If this option is true, server receives IP address of client. So, server can open URL!

trans-localfile

Default: true

This option works with open command only.

If this option is true, lemonade translates path of local file to address of client.

For example, you input lemonade open ./file.txt. If this option is false, server receives ./file.txt. But this isn't expected. Because, at server, ./file.txt doesn't exist.

If this option is true, server receives IP address of client. And client serve the local file. So, server can open the local file!

line-ending

Default: "" (NONE)

This options works with copy and paste command only.

If this option is lf or crlf, lemonade converts the line ending of text to the specified.

Alias

You can use lemonade as a xdg-open, pbcopy and pbpaste.

For example.

bash
$ ln -s /path/to/lemonade /usr/bin/xdg-open
$ xdg-open  'http://example.com' # Same as lemonade open 'http://example.com'

Secure TCP Connection

Lemonade doesn't provide encryption and authorization. However we can use SSH Port forwarding for the purpose.

lemonade server

bash
$ lemonade server -allow 127.0.0.1 &
$ ssh -R 2489:127.0.0.1:2489 user@host

See:

  • SSH/OpenSSH/PortForwarding - Community Help Wiki
  • WOW! and security? · Issue #14 · lemonade-command/lemonade

Links

  • https://speakerdeck.com/pocke/remote-utility-tool-lemonade
  • リモートのPCのブラウザやクリップボードを操作するツール Lemonade を作った - pockestrap
  • リモートユーティリティーツール、Lemonade v0.2.0 をリリースした - pockestrap
  • lemonade v1.0.0をリリースした - pockestrap

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Go

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言