tailscale/libtailscale

Tailscale C library

Swift

338

52 commits

updated Aug 31, 2026

See the code

README

libtailscale

libtailscale is a C library that embeds Tailscale into a process.

Use this library to compile Tailscale into your program and get an IP address on a tailnet, entirely from userspace.

Building

With the latest version of Go, run:

go build -buildmode=c-archive

or

make archive

This will produce a libtailscale.a file. Link it into your binary, and use the tailscale.h header to reference it.

It is also possible to build a shared library using

go build -buildmode=c-shared

or

make shared

Bugs

Please file any issues about this code or the hosted service on the issue tracker.

License

BSD 3-Clause for this repository, see LICENSE.

Contributors

crawshaw

18 commits

barnstar

12 commits

raggi

12 commits

prakashrj

3 commits

tailscale/libtailscale

Tailscale C library

Swift

338

52 commits

updated Aug 31, 2026

See the code

README

libtailscale

libtailscale is a C library that embeds Tailscale into a process.

Use this library to compile Tailscale into your program and get an IP address on a tailnet, entirely from userspace.

Building

With the latest version of Go, run:

go build -buildmode=c-archive

or

make archive

This will produce a libtailscale.a file. Link it into your binary, and use the tailscale.h header to reference it.

It is also possible to build a shared library using

go build -buildmode=c-shared

or

make shared

Bugs

Please file any issues about this code or the hosted service on the issue tracker.

License

BSD 3-Clause for this repository, see LICENSE.

Contributors

crawshaw

18 commits

barnstar

12 commits

raggi

12 commits

prakashrj

3 commits

Languages

Swift

47.4%

Go

15.2%

Ruby

13.2%

C

8.4%

Objective-C

4.7%

Python

4.5%

Makefile

4.4%

C++

1.1%