Skip to content

Install Pilot and Connect Linear via Localtonet

Install and verify Pilot, then expose its local HTTP gateway for Linear webhook access through a Localtonet HTTP tunnel.

Summary in your language
In this article 11 sections
Developer Tools · Pilot · Linear Polling · Localtonet

Configure Linear polling first, then prepare webhook exposure only if you need it

Pilot monitors labeled Linear issues and can turn them into repository changes and pull requests. This guide covers macOS and Linux installation, Linear credentials, workspace configuration, repository mapping, and controlled verification. Linear polling is enabled by default and does not require a public inbound endpoint. With Localtonet, you can prepare public HTTPS connectivity for a separately verified webhook listener, but that is an optional delivery path, not a prerequisite for polling.

🔒 Limited credentials and reviewed repository changes 🌐 Polling versus public webhook delivery ⚡ Configuration, diagnostics, and bounded testing

Choose the delivery model before exposing a listener

Pilot is the automation application, Linear supplies tickets, and Localtonet supplies public network reachability when an application needs incoming connections. These responsibilities are separate. A working tunnel cannot repair an invalid Linear API key, a missing execution backend, or an incorrect repository mapping.

The documented Linear adapter supports polling, enabled by default, with a default interval of 30s. Pilot periodically checks Linear through outbound API requests. This does not itself require a webhook receiver, router port forwarding, or a Localtonet tunnel. Begin with this model unless you have a specific reason to receive webhook deliveries.

Webhook delivery reverses the direction of the initial connection: Linear sends an HTTP request to a public receiver. Our client establishes an outbound connection to a Localtonet relay, and an HTTP tunnel provides a public HTTPS address forwarding to an IP address and port reachable from that client. The application must still authenticate and authorize the incoming request.

Two separate delivery sequences

POLLING
Pilot process ── outbound API request ──> Linear API
Pilot process <── matching issues ────── Linear API
      |
      +── workspace/project checks ──> repository execution

No public inbound endpoint is needed for polling itself.

CONDITIONAL WEBHOOK DELIVERY
Linear
  |
  | HTTPS request to the confirmed application route
  v
Localtonet relay
  |
  | tunnel carried over the client's outbound connection
  v
Localtonet client ──> configured local IP:port
                              |
                     FULL LISTENER EXPOSURE
                     Other routes may be reachable.
                              |
                     Application validation boundary
                     Signature, freshness, event scope,
                     authorization, duplicate handling
                              |
                     repository execution

The webhook sequence is an architectural preparation diagram, not a verified Pilot webhook configuration. A tunnel targets a listener, not an automatically isolated URL path.

Compatibility and scope

This guide follows Pilot’s current installation and Linear configuration documentation and asks you to record the version actually installed. It does not pin or claim runtime testing of v2.270.0. The exact Linear-specific activation command and the webhook route, signing-secret configuration, accepted events, and interaction with polling are not established here. Installation and configuration are provided below; runtime activation remains a compatibility check before the controlled test. This is not a completed end-to-end webhook tutorial.

🔄 Polling Outbound Linear API access, enabled by default, with a documented 30-second default interval.
📨 Webhook preparation Requires an exact application contract before a public destination can be registered safely.
🔐 Execution controls Both delivery models need limited credentials, intentional project mappings, and review of repository changes.

Prepare the account, backend, and repository

The command examples below use Bash on macOS or Linux. Pilot’s installation script supports these operating systems on amd64 and arm64. Windows, desktop packaging, and Go-based installation are outside this guide’s verified installation scope. A repository containing a Windows installer does not, by itself, establish its requirements or behavior.

  • Use a machine and operating-system account dedicated to, or appropriately isolated for, automation.
  • Install Git and the build, test, and lint tools required by your target repository.
  • Have Claude Code installed and authenticated under the account that will run Pilot.
  • Prepare a controlled repository and repository-provider credentials with only the access needed for that repository.
  • Have permission to create a Linear API key and the trigger label in the intended workspace or team.

Pilot’s current overview documents using an existing Claude subscription when Claude Code is already authenticated, or an Anthropic API key through supported configuration. It does not establish the exact backend installation and login commands here. Complete the authentication method appropriate to your installed Claude Code release before using Pilot, and confirm that the same operating-system account can use it. Do not assume that authentication in your interactive desktop account is available to a separate service account.

For the same reason, this guide does not assert a fixed Claude Code or Go minimum. Those requirements must match the installed release. The script installation downloads a binary; it does not require you to compile Pilot with Go.

Before involving Pilot, confirm the intended checkout is the correct repository and is clean:

cd /absolute/path/to/controlled-test-repository
git status --short
git remote -v
git branch --show-current

Replace the path with your actual checkout. Review remotes locally because they may contain private repository addresses. Resolve uncommitted changes, run the repository’s normal tests, and establish the baseline branch before automation starts. Reading a repository successfully does not prove that the configured provider identity can push a branch or open a pull request.

Install Pilot and record the actual version

Recommended script installation

The documented quick installation downloads the latest release for the detected platform and installs it at ~/.local/bin/pilot:

curl -fsSL https://raw.githubusercontent.com/qf-studio/pilot/main/install.sh | bash

A remote script runs with your account’s permissions. For an inspection-first workflow, download it, read it, and execute the same saved file only after approving it:

curl -fsSL \
  https://raw.githubusercontent.com/qf-studio/pilot/main/install.sh \
  -o pilot-install.sh
less pilot-install.sh
bash pilot-install.sh

The script adds ~/.local/bin to PATH if needed. If your current shell does not see the change yet, open a new shell or update the current session explicitly:

export PATH="$HOME/.local/bin:$PATH"
command -v pilot
pilot --version
pilot doctor

Record the version output rather than copying a version number from a documentation example. The installer URL uses main and downloads a current release, so it is not a reproducible pin to v2.270.0.

Homebrew alternative

brew tap qf-studio/pilot
brew install pilot
pilot --version
pilot doctor

Use one installation method consistently. Homebrew owns its installed binary and blocks Pilot self-upgrade and hot-upgrade. Upgrade that installation with:

brew upgrade pilot

The script installation supports Pilot’s documented built-in upgrade flow. The installation documentation describes pressing u in the daemon dashboard for hot-upgrade. Schedule upgrades deliberately even when an update mechanism is designed to avoid downtime.

Build from source

A source build requires Git, Make, and a Go toolchain compatible with the selected checkout. Inspect that checkout’s go.mod and build requirements before compiling; no exact minimum is assumed here. Create the parent and destination directories first, and use a new clone directory:

mkdir -p "$HOME/src" "$HOME/.local/bin"
cd "$HOME/src"
git clone https://github.com/qf-studio/pilot.git
cd pilot
git rev-parse HEAD
make build
./bin/pilot --version
cp ./bin/pilot "$HOME/.local/bin/pilot"
export PATH="$HOME/.local/bin:$PATH"
pilot --version
pilot doctor

This follows the documented ./bin/pilot build output and copy-to-PATH workflow, without a privileged installation target. Record the commit as well as the binary version. A checkout of the default branch is not a pinned release.

Run setup and interpret diagnostics

pilot setup
pilot doctor

Use pilot setup, the current overview’s configuration entry point. Preserve the generated repository and backend settings when adding Linear configuration. The Pilot installation documentation describes pilot doctor checks for:

  • Claude Code installed and accessible.
  • Git available for version control.
  • Optional gh, the GitHub CLI used for PR management.
  • A configuration file that exists and is valid.
  • Required token environment variables being set.

A missing configuration warning before setup is different from an invalid configuration after editing. A token-variable check is also not proof that the token is valid or has sufficient permissions. Resolve required findings before starting work, then verify actual provider access through the controlled test.

Configure Linear workspaces in ~/.pilot/config.yaml

Create the API key and identify the team

In Linear, open Settings → API → Personal API keys, select Create key, and copy the key into protected storage. The documented flow warns that it will not be shown again. For production, use a dedicated service account: personal API keys are scoped to the user who created them.

For Pilot’s team_id setting, the Linear integration documentation specifies the short issue prefix. For example, use APP for issues such as APP-42. Despite the field name, this documented value is a team key, not a team UUID.

Load secrets without putting them in YAML

The documented configuration supports ${LINEAR_API_KEY}. In Bash, read the credential without echoing it or embedding its literal value in shell history:

read -r -s -p "Linear API key: " LINEAR_API_KEY
printf '\n'
export LINEAR_API_KEY

For a GitHub-backed repository, the overview documents GITHUB_TOKEN; for the corresponding GitLab workflow it documents GITLAB_TOKEN. Load only the credential needed by your configured provider. For example:

read -r -s -p "GitHub token: " GITHUB_TOKEN
printf '\n'
export GITHUB_TOKEN

These variables are inherited by processes launched from this shell, not automatically by another terminal or a service manager. For unattended operation, use your service manager’s protected environment or secret facility. Do not print tokens to check them, enable shell tracing around them, or commit a credential file to the repository.

Minimal Linear configuration

Add this complete minimal Linear section to ~/.pilot/config.yaml. It is not a replacement for the rest of the configuration generated by setup. Replace the workspace name and team key with your values:

linear:
  enabled: true
  workspaces:
    - name: controlled-test
      api_key: ${LINEAR_API_KEY}
      team_id: APP
      pilot_label: pilot
      auto_assign: true

This enables the adapter and uses the documented polling defaults: enabled, every 30 seconds. auto_assign: true assigns issues to the API key owner. Its default is false, so set it intentionally rather than treating assignment as a requirement.

Create a label named pilot in the intended Linear workspace, or use the exact name configured in pilot_label. Pilot also uses the following status labels automatically:

LabelDocumented purposeWhat to inspect
pilotTriggers issue pickupExact match with pilot_label
pilot-in-progressApplied while Pilot worksExpected issue and repository are selected
pilot-doneApplied after successful completionReview resulting changes and checks
pilot-failedApplied after execution failureInspect logs before retrying

Filter Linear projects and map Pilot projects

project_ids and projects solve different problems. The former filters by Linear project IDs. The latter contains names of configured Pilot projects that map work to repositories. A Linear project UUID is not a local directory, and a Pilot project name must resolve to a project already configured in Pilot.

linear:
  enabled: true
  polling:
    enabled: true
    interval: 30s
  workspaces:
    - name: controlled-test
      api_key: ${LINEAR_API_KEY}
      team_id: APP
      pilot_label: pilot
      project_ids:
        - "REPLACE_WITH_LINEAR_PROJECT_UUID"
      projects:
        - "REPLACE_WITH_CONFIGURED_PILOT_PROJECT_NAME"
      auto_assign: true

Replace both placeholders before use. Keep the existing Pilot project definitions created through setup. Their full schema is not established here, so this example does not invent a top-level repository mapping block. Confirm the configured project points to your controlled checkout before adding the trigger label to any issue.

Workspace precedence and inherited polling

The Pilot Linear integration documentation supports multiple workspace entries, each with its own API key, team, trigger label, project filters, and project mapping. Workspace polling settings inherit top-level linear.polling values unless overridden. For example, a workspace can contain:

      polling:
        enabled: true
        interval: 60s

Place that block inside the relevant workspace entry at the same indentation as auto_assign. Other workspaces continue inheriting the top-level interval.

The legacy flat configuration places api_key, team_id, and related fields directly under linear. Pilot internally converts it into a workspace named default. If both workspaces and a top-level api_key are present, workspaces takes precedence. Prefer one format, and remove stale credentials or settings that could mislead the next operator.

Verify configuration before attempting startup

Pilot configuration and local process checks precede optional public listener exposure.
Local checks isolate application failures. An HTTP listener is relevant to webhook preparation, not a prerequisite for outbound polling.

Protect the configuration directory and file under the account that runs Pilot, then rerun diagnostics with credentials loaded:

chmod 700 "$HOME/.pilot"
chmod 600 "$HOME/.pilot/config.yaml"
pilot --version
pilot doctor

Check YAML indentation, duplicate linear keys, unresolved environment variables, and misspelled project names. Avoid replacing the whole file with a Linear-only snippet because the execution backend and repository configuration still matter.

Linear activation must match your installed release

The current overview demonstrates pilot start --github --dashboard for GitHub, not Linear. It is not a substitute for a Linear startup command. Before running the issue test, establish the Linear activation behavior from the installed release’s command help or matching integration documentation. Do not assume a --linear flag or assume that generic daemon startup necessarily activates every configured adapter.

Once that command is established, launch from the shell containing the required variables. Keep logs visible and verify that the intended Linear workspace and polling mode initialize without credential or configuration errors. Record the exact command and version in your private deployment notes.

Conditional listener checks

For polling alone, absence of an HTTP listener is not evidence of failure. For a separately configured webhook receiver, obtain its actual bind address and port from configuration and startup output. Do not assume 127.0.0.1:9090.

# Linux: inspect listening TCP sockets and owning processes
ss -ltnp

# macOS: inspect listening TCP sockets
lsof -nP -iTCP -sTCP:LISTEN

Run the command appropriate to your platform. Process details may require additional permission. Match the socket to the expected process, rather than treating any open port as Pilot. No harmless Pilot health endpoint is established here, so do not invent one or send fabricated webhook payloads as a readiness test.

Protect both the listener and the execution environment

Local Pilot connectivity and application validation form separate security boundaries.
Loopback binding can limit direct network access, but forwarding that listener through a tunnel can expose all of its routes. The illustration does not establish path isolation.

Receiving a legitimate ticket is not the same as receiving safe instructions. A signed webhook can contain unsafe task content, and a polled issue can contain the same content. Both can lead an automation backend to edit code or run commands.

  • Use isolated execution and a controlled repository before granting production access.
  • Limit credentials, filesystem access, and access to unrelated services.
  • Keep production deployment credentials out of the initial test environment.
  • Restrict who can apply the trigger label through your organization’s available controls and procedures.
  • Preserve branch protection, CI checks, and human review before merging.
  • Review generated commands and changes rather than relying on a success label alone.

These are recommended safeguards, not claims that Pilot enforces every control automatically. A dedicated service account reduces accidental privilege inheritance but still needs carefully selected permissions.

An HTTP tunnel exposes a listener, not just the registered path

Registering one webhook path in Linear only tells Linear where to send requests. It does not prevent other callers from requesting another route on the same public origin. Inspect the target listener’s routes, including any dashboard, administrative, status, or debugging endpoints.

If unrelated routes must remain private, use an application restriction documented for that release or a separately configured reverse proxy that only forwards the confirmed webhook path and methods. Verify both allowed and denied routes before public use. We do not assume or invent a Localtonet path-filter setting.

Signature, freshness, and duplicate handling need confirmation

Before enabling webhooks, verify the current Linear webhook contract for signing, timestamps, delivery retries, and inspection capabilities, then compare it with the installed Pilot implementation. No exact signature algorithm, header, freshness window, or retry schedule is asserted here without that verification.

Confirm that missing or invalid authentication is rejected before work begins, and that body handling matches the provider’s signature requirements. Also confirm replay protection and duplicate handling separately. A valid signature alone does not establish freshness or exactly-once execution. Do not assume Pilot deduplicates events across polling and webhooks until that interaction is documented and tested.

Prepare Localtonet only for a verified webhook receiver

Conditional Linear webhook traffic crosses a Localtonet relay and client to reach a local Pilot listener.
This topology applies to incoming webhook delivery. Linear polling uses outbound API access and does not need this tunnel.

Before public exposure, establish the exact route, secret-setting name, startup command, accepted events, polling interaction, validation behavior, and response expectations for your Pilot release. Without those facts, stop at local configuration. Do not register a guessed path.

The following is our general tunnel lifecycle, not a claim about the exact screen count in a particular dashboard version. Use the Localtonet HTTP tunnel documentation for the current HTTP configuration interface.

1

Install and run the client

Run the Localtonet application on the device that can reach the verified local service.

2

Select the device

Authenticate or select the connected device using its device-specific token. Keep that token private.

3

Choose an available relay

Select a server or region currently available in the dashboard rather than copying an old server code.

4

Configure the HTTP target

Use the verified local IP and port, or the restricted reverse-proxy listener. HTTP Process Type options include Random Sub Domain, Custom Sub Domain, and Custom Domain; availability can vary. Check current documentation before configuring custom-domain DNS.

5

Start and verify

Press Start and record the assigned HTTPS origin. A created configuration is not necessarily running. Register a provider destination only after the application route and security contract have been verified.

6

Stop or delete when no longer needed

Stop the tunnel to remove its public reachability. Delete it when retiring the configuration permanently.

If the target is 127.0.0.1, the service and Localtonet client must run on the same device. On a different device, loopback points to that client itself. The tunnel remains available only while the selected client is connected and the tunnel is running; the target service must also be healthy to answer requests.

A public origin and an application-specific webhook path form a provider destination URL.
The URL composition is conceptual. Use the verified Pilot route, and do not interpret the appended path as a restriction on other reachable routes.

Test one bounded Linear issue after activation is confirmed

Use this acceptance test only after establishing the Linear startup command and confirming that polling is active. Keep any optional webhook delivery disabled or unconfigured for the first test so you can attribute issue pickup to one delivery mechanism.

  1. Create one issue in the configured team and, if applicable, the allowed Linear project.
  2. Request a small documentation-only change in the controlled repository. Specify the existing file, desired text, and acceptance criteria. Explicitly exclude deployments and dependency changes.
  3. Confirm the mapped Pilot project targets that repository, then add the exact trigger label.
  4. Observe Pilot logs and the issue for pickup. The default polling interval is 30 seconds, not a guarantee of completed execution within 30 seconds.
  5. Watch for pilot-in-progress, followed by pilot-done or pilot-failed.
  6. Inspect the resulting repository activity, proposed change, and pull request where configured. Verify no unrelated repository was touched.

Allow a few configured polling intervals for initial pickup, then investigate rather than repeatedly adding and removing labels. Completion time depends on the task, backend, and repository checks. A success label is useful evidence, but inspect the actual diff and test results before accepting the outcome.

Record the issue identifier, workspace, Pilot version, project mapping, observed labels, and repository result without storing credentials. Confirm there is only one intended unit of work. That observation is a test result, not a general duplicate-handling guarantee.

For a later webhook test, first complete the provider and application contract checks. Compare a documented harmless local response with the public equivalent if such an endpoint exists, then generate one controlled provider event. Do not treat an arbitrary 404 or an open socket as proof that signature validation and repository authorization work.

Operate, upgrade, and shut down deliberately

Monitor the mechanism you actually use. Polling operations depend on Pilot, outbound connectivity, credentials, filters, and repository access. Webhook operations additionally depend on the receiver, Localtonet client, tunnel, and provider delivery behavior.

Before an upgrade, record the active binary path, version, configuration, and project mappings. Use brew upgrade pilot for Homebrew installations, or the documented built-in flow for script installations. Afterward, rerun pilot doctor and repeat the bounded test before broadening access.

Planned shutdown

Prevent new test issues from receiving the trigger label, allow active work to reach a safe point, and stop Pilot using the process or service mechanism under which it runs. For webhook deployments, also stop the Localtonet tunnel. Provider-side webhook removal or disabling should follow the provider’s current documented controls; do not assume a pause feature exists.

Stopping a tunnel does not stop polling, revoke credentials, or cancel a task already accepted by Pilot. When retiring the deployment, remove unused configuration and revoke credentials through the relevant provider’s documented process.

Incident response

If public exposure is implicated, stop the tunnel promptly. If unsafe work or polling is continuing, stop the Pilot process as well. Preserve non-secret logs and inspect branches, commits, pull requests, and other accessible systems. Revoke compromised credentials, correct mappings and access, and repeat local verification before restarting. Do not assume rotating a public URL invalidates a leaked credential.

Troubleshoot by layer

SymptomCheck firstSafe next action
pilot not foundInstallation path and PATHCheck ~/.local/bin/pilot, refresh PATH, and use command -v pilot.
Unexpected versionMultiple installationsIdentify the active binary before reinstalling or upgrading.
Doctor reports missing configurationAccount and home directoryRun setup under the intended account and inspect ~/.pilot/config.yaml.
Configuration invalidYAML and project referencesCheck indentation, duplicate keys, and preservation of generated settings.
Required token variable missingProcess environmentLoad it in the launching shell or service environment without printing it.
Claude Code unavailableBackend installation and accountVerify accessibility and authentication under the actual Pilot account.
No Linear issues picked upActivation, label, team, filtersConfirm polling is enabled, the team prefix matches, and the issue belongs to allowed projects.
Editing top-level API key has no effectWorkspace precedenceCheck whether workspaces overrides the legacy flat configuration.
Unexpected polling intervalWorkspace overrideInspect inherited top-level settings and workspace-specific polling values.
Issue picked up but repository work failsProject mapping and repository credentialsSeparate Linear access from clone, push, PR, and build permissions.
No HTTP listener during pollingDelivery modelDo not create a tunnel merely to remedy an absent webhook listener.
Local receiver works, public URL failsClient, tunnel, and targetCheck the selected device is connected, the tunnel is started, and the target is reachable.
Wrong route or rejected webhookApplication contractVerify the exact route and validation requirements without disabling authentication.
Duplicate or wrongly mapped workDelivery overlap and mappingsStop processing, preserve identifiers, and verify behavior in isolation.

Change one layer at a time. A successful doctor run does not prove provider permissions; a successful API call does not prove label selection; and successful label selection does not prove safe execution. Likewise, an HTTP response proves less than an authenticated event that creates the intended bounded repository result.

Frequently asked questions

Does Linear polling require Localtonet?

No. Polling makes outbound API requests. Localtonet is relevant when a verified local webhook receiver needs public HTTPS reachability.

What does team_id mean in Pilot’s Linear configuration?

The documented value is the issue prefix, such as APP for APP-42, rather than a team UUID.

How do project_ids and projects differ?

project_ids filters Linear projects by ID. projects names configured Pilot projects used for mapping work to repositories. They are not interchangeable.

Do these commands install v2.270.0?

No. The script, unpinned Homebrew package, and default-branch source build do not establish that release. Record pilot --version and use matching documentation.

Does registering one webhook path expose only that route?

No. An HTTP tunnel targets an IP and port. Other routes on that listener may also be reachable unless an application restriction or reverse proxy prevents access.

Does stopping the tunnel stop Pilot from processing Linear issues?

No. Polling and already accepted work can continue. Stop the Pilot process or its configured service when you need to stop processing, and separately stop the tunnel to remove public reachability.

Use Localtonet when your verified receiver needs public reachability

Start with Linear configuration and a controlled polling test. If you later establish a supported webhook receiver, use our HTTP tunnel to reach it without inbound router port forwarding, while retaining application validation and repository review controls.

Get Started Free →

Corrections & updates

Substantive changes approved by the Localtonet editorial team are listed transparently below.

Updated Pilot installation and Linear configuration guidance, clarified polling versus webhooks, and expanded verification and exposure safeguards.

Reviewed and updated for accuracy and completeness.

Localtonet is a secure multi-protocol tunneling and proxy platform designed to expose localhost, devices, private services, and AI agents to the public internet supporting HTTP/HTTPS tunnels, TCP/UDP forwarding, mobile proxy infrastructure, file server publishing, latency-optimized game connectivity, and developer-ready AI agent endpoint exposure from a single unified control plane.

Support