@dreamtain/pi

Official Dreamtain provider integration for the Pi coding agent

Packages

Package details

extension

Install @dreamtain/pi from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@dreamtain/pi
Package
@dreamtain/pi
Version
0.3.0
Published
Sep 16, 2026
Downloads
290/mo · 38/wk
Author
somlet
License
MIT
Types
extension
Size
11.9 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

Dreamtain for Pi

The official Dreamtain provider integration for the Pi coding agent.

It adds Dreamtain API-token authentication, model-availability validation, streamed responses, tool calling, and text and image input to Pi. Morrow 1 is available as Dreamtain / Morrow 1 in Pi's model selector.

Installation

pi install npm:@dreamtain/pi

Then start Pi and use:

  1. /login
  2. Sign in with an API key
  3. Dreamtain
  4. Enter a Dreamtain API token with the ai.inference permission.
  5. Run /model and select Dreamtain / Morrow 1.

/login dreamtain skips directly to the Dreamtain token prompt. The extension validates the token against Dreamtain's public model-discovery endpoint before Pi stores it.

To remove the integration:

pi remove npm:@dreamtain/pi

Requirements

  • Pi 0.84.2 or a compatible later release
  • Node.js 22.19.0 or newer
  • a Dreamtain API token with the ai.inference permission

Image input

Morrow 1 accepts PNG, JPEG, GIF, and WebP image input. Pi prepares attached images before sending them to Dreamtain. The Dreamtain API enforces its own image-count, payload-size, and dimension limits.

Reasoning

Morrow 1 always reasons; Pi's thinking level only selects the reasoning effort. low, medium, and high select progressively larger Dreamtain-controlled reasoning budgets. Reasoning text remains private, while its token usage is included in Pi's normal response statistics.

Credential security

Pi stores the token in ~/.pi/agent/auth.json with user-only permissions (0600). The credential is not encrypted through an operating-system keychain. Use a narrow, independently revocable token and remove it with /logout when it is no longer needed.

Pi 0.84.2 through 0.84.4 renders API-key input visibly even when an extension requests its documented secret prompt type. This extension requests the secret type and never logs the token, but cannot alter Pi's terminal input rendering. On affected versions, enter credentials only in a private terminal without session recording or screen sharing.

Like every Pi extension, this package executes with the permissions of the Pi process. Review third-party packages before installing them.

Attribution and license

This is an independent integration built with Pi's public extension APIs. Pi was created by Mario Zechner and is licensed under the MIT License. Dreamtain is not affiliated with or endorsed by the Pi project.

Dreamtain for Pi is distributed under the MIT License. See Third-party notices for dependency attribution.