Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Portacode

Build it. Own it. Take it anywhere.

Portacode is an AI-powered builder and mobile-first development environment that works on real Linux machines. Describe what you want to build, let Portacode work through the implementation on a machine you control, and keep the result as ordinary source code, data, containers, and configuration.

It combines an AI coding agent with the tools developers expect from a real machine: a terminal, files, Git, diffs, processes, and deploys. Use hardware you already have, connect a VPS or homelab, deploy to supported infrastructure, and move the project when your needs change.

Get started · Open Portacode · Android app · Report an issue

Why Portacode

  • You own the result. Projects remain ordinary files on an ordinary machine, not artifacts trapped in a proprietary runtime.
  • Real tools, not a preview sandbox. Work with a real terminal, filesystem, Git repository, services, containers, databases, and deploys.
  • Your infrastructure is a choice. Connect an existing machine, use managed capacity, or run projects on your own supported infrastructure.
  • Leaving is supported. Back up, transfer, or move a project instead of rebuilding it around a platform-specific format.
  • AI changes stay reviewable. Inspect diffs and project state while the agent works, and decide what it is allowed to change.
  • Built for mobile as well as desktop. Browse a project, review changes, use a terminal, and respond to work without waiting to get back to a desk.
  • No approved-stack list. If your language, framework, database, or tool runs on the underlying Linux machine, it can be part of your project.

What You Can Do

Portacode supports more than remote terminal access. From the same browser-based workspace you can:

  • ask an AI agent to create, change, debug, and deploy software;
  • inspect files, branches, Git status, and line-by-line diffs;
  • work directly in persistent terminal sessions;
  • connect and switch between your own machines;
  • provision clean environments from reusable deployment templates;
  • run repeatable build, test, deployment, and runbook workflows from YAML;
  • expose services through HTTPS and custom domains on supported infrastructure;
  • manage projects from a phone, tablet, or desktop.

The product evolves quickly. The live Portacode website and technical guides are the source of truth for currently available integrations, templates, limits, and infrastructure options.

Start Building

You do not need to prepare a machine before trying Portacode. Start at portacode.com, describe the outcome you want, and choose where the project should run.

To bring an existing machine into Portacode, pair it once using the dashboard and the CLI below.

Connect Your Own Machine

Portacode's Python package is the device-side CLI and agent. It connects an existing Linux/Python-capable machine to your Portacode account so the web workspace can work with its projects and developer tools.

Recommended Linux setup

  1. Sign in to Portacode and select Pair Device.
  2. Run the activation command shown there on the target machine. It installs Portacode in a dedicated virtual environment, pairs the device, and configures its persistent service.
  3. Approve the pairing request in the dashboard.

The command has this form; use the short-lived code displayed in your own dashboard:

curl -fsSL https://portacode.com/static/activate_portacode.sh \
  | bash -s -- --pairing-code YOUR_CODE

Review the downloaded script before running it if that is required by your environment. See the pairing guide for supported distributions, a fully manual installation, and Proxmox-specific setup.

Manual CLI setup

If you already have a suitable Python environment:

python -m pip install --upgrade portacode
portacode connect --pairing-code YOUR_CODE \
  --device-name "My Linux Device" \
  --project-path /absolute/path/to/project

Approve the request in the dashboard. The device stores its identity locally and reuses it for later connections. For an always-on connection, install the supervised service after pairing:

portacode service install
portacode service status

System-wide service installation may require elevated privileges. Run portacode --help, portacode connect --help, or portacode service --help for the options supported by the installed version.

Automation and Deployments

A portafile.yaml can describe a repeatable workflow for a new disposable environment or an existing device. Depending on the workflow, it can select a base environment, request resources, create project paths, collect inputs, run ordered build/test/deploy steps, expose services, and define success or failure behavior.

This keeps automation portable and reviewable alongside the project while Portacode handles orchestration and status reporting. The schema is intentionally documented on the live site because it gains capabilities more frequently than the CLI README changes.

See the CI/CD and portafile.yaml reference or browse one-click deployment templates.

Your Infrastructure

Existing Linux machines can be paired directly. For self-hosted provisioning, a supported Proxmox node can become Portacode infrastructure, allowing projects and automation to create isolated environments against the capacity you control. Services can be connected to custom domains through the supported Cloudflare Tunnel flow.

Security and Control

Each paired device has its own cryptographic identity. The private key is stored on the device, connections are encrypted in transit, and access can be revoked from Portacode. Pairing codes are short-lived and a new device still requires approval in the dashboard.

AI work is designed around visible project state and reviewable diffs. As with any remote administration or coding-agent tool, connect only machines and project paths you intend Portacode to access, review proposed changes, and use appropriate operating-system permissions and backups.

Identity Storage and Containers

The CLI uses the operating system's application-data directory (through platformdirs) and stores its device identity under portacode/keys/. Typical locations are:

  • Linux: ~/.local/share/portacode/keys/
  • macOS: ~/Library/Application Support/portacode/keys/
  • Windows: %APPDATA%\portacode\keys\

When running the CLI in a container, persist the relevant application-data directory so the container retains its device identity across rebuilds. The examples demonstrate the pattern:

Guides

Contributing and Support

Bug reports, focused fixes, and documentation improvements are welcome. Open an issue or a pull request in this repository.

For product support, email support@portacode.com.

License

Portacode's public device-side client is available under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

portacode-1.5.28.dev4.tar.gz (747.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

portacode-1.5.28.dev4-py3-none-any.whl (441.6 kB view details)

Uploaded Python 3

File details

Details for the file portacode-1.5.28.dev4.tar.gz.

File metadata

  • Download URL: portacode-1.5.28.dev4.tar.gz
  • Upload date:
  • Size: 747.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for portacode-1.5.28.dev4.tar.gz
Algorithm Hash digest
SHA256 d5558adb3e129e7665c4b0dc480b905543059c3399efc1bdcbd70d3beb5666f9
MD5 230bcdf56bc442460cc831e3690748f3
BLAKE2b-256 608ce7f817a1a2e85aa5cd2a49411dc0975a8bbafb5950831c2875dd5f183e6d

See more details on using hashes here.

File details

Details for the file portacode-1.5.28.dev4-py3-none-any.whl.

File metadata

File hashes

Hashes for portacode-1.5.28.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 f5bbc9a6ec4ea3cf6fb64959d762535ae3b75ba19eb5c583c1e22ee675a3761c
MD5 b4176fdac0fc4cdd75d915b61ca3fe79
BLAKE2b-256 15cb15a47005504a438fabbcdd50aaa9bc650232143961fd4a5da93acd9def6f

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page