Skip to content

feat(runtime): add --api-port and --console-port to 'apify runtime start' - #1464

Closed
Pijukatel wants to merge 12 commits into
masterfrom
claude/serene-allen-afb5h5
Closed

Pijukatel wants to merge 12 commits into
masterfrom
claude/serene-allen-afb5h5

Conversation

@Pijukatel

Copy link
Copy Markdown
Contributor
  • apify runtime start --api-port/--console-port runs the Actor runtime on other ports; they are remembered for later starts, connect, status, skill and console links in apify call.
  • Ports are ignored while disconnected, so platform traffic is unaffected. Default ports keep older runtime images working.
  • Needs feat: Make the API and console ports configurable actor-runtime#80 for non-default ports. No new dependencies.

Generated by Claude Code

Pijukatel and others added 12 commits September 7, 2026 14:58
Co-authored-by: Claude <noreply@anthropic.com>
Points the runtime image at the development repository on Docker Hub, so
'apify runtime install' downloads it instead of expecting a locally built
placeholder. Reworks the pull-failure hint accordingly.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mpiku6d313JRBVoTVKNCXv
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Update the CLI to accept both Docker or Podman.

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Actors running through local actor runtime will by default work in local
dev folder mode.

Depends on: apify/actor-runtime#43

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
`apify runtime install [image]` pulls the given image instead of the
default `apify/actor-runtime:latest`, so a pinned build or another
runtime implementation can be used:

```sh
apify runtime install apify/actor-runtime:master-5462005
```

- The installed image is recorded in
`~/.apify/actor-runtime/config.json`.
- `apify runtime start` runs whatever was installed last; no flags or
checks there.
- Without an argument, `install` keeps using the default image.
- No new dependencies.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01U7Bi6BtaXTmLFxAiV3gRZ3

Co-authored-by: Claude <noreply@anthropic.com>
'apify runtime status' reports whether the runtime container is running,
on which engine and image, the ports it publishes, the host directory
mounted as its data directory, and which API the CLI currently targets.
It exits 1 when the runtime is down, and takes --json.

'apify runtime connect' makes every CLI command target the local
runtime, and 'apify runtime disconnect' reverts to the Apify platform.
The connection is stored next to the installed image in
~/.apify/actor-runtime/config.json, so it holds across terminals and
does not touch the login. APIFY_CLIENT_BASE_URL and APIFY_CONSOLE_URL
keep taking precedence wherever they are set, so the current per-shell
behavior is unchanged; both commands say so when they are set.


Claude-Session: https://claude.ai/code/session_01PaySaAvWxMBNuVMSXXLqno

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Adds `apify runtime skill [--install]`, which reads the runtime's own
Agent Skill over HTTP when the runtime is running, or straight out of
the installed image when it is not — so `apify runtime install` is the
only prerequisite.

No copy is bundled with the CLI: one could only ever describe the image
the CLI was released against. `runtime install`, `start`, `connect` and
`status` now print one line pointing at the command.

Refs apify/actor-runtime#53. Needs apify/actor-runtime#54 to land first,
since the image must carry the file.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01ExpRUXDzyTmT828ugqkjAP

---------

Co-authored-by: Claude <noreply@anthropic.com>
…t updated (#1448)

`apify runtime install` no longer skips the pull when the image exists
locally, so an outdated `apify/actor-runtime:latest` gets updated from
the registry.
Only `@sha256:` digests short-circuit; `apify runtime start` still uses
the local copy.

---------

Co-authored-by: Claude <noreply@anthropic.com>
…art'

Lets the local Actor runtime run when 3333 or 3000 is taken. The chosen
ports are passed to the runtime (ACTOR_RUNTIME_API_PORT /
ACTOR_RUNTIME_CONSOLE_PORT), published under the same number, and
remembered for later starts, 'connect', 'status' and 'skill'.

Refs apify/actor-runtime#77

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ac6RaZAULDqhZMW7UhSeHD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants