KosmoKrator

productivity

wallabag CLI for AI Agents

Use the wallabag CLI from KosmoKrator to call wallabag tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

wallabag CLI Setup

wallabag can be configured headlessly with `kosmokrator integrations:configure wallabag`.

Install, configure, and verify
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure wallabag --enable --read allow --write ask --json
kosmokrator integrations:doctor wallabag --json
kosmokrator integrations:status --json

Credentials

Authentication type: oauth2 password oauth2_password. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
access_token WALLABAG_ACCESS_TOKEN Secret secret no Access Token
refresh_token WALLABAG_REFRESH_TOKEN Secret secret no Refresh Token
client_id WALLABAG_CLIENT_ID Secret secret no Client ID
client_secret WALLABAG_CLIENT_SECRET Secret secret no Client Secret
username WALLABAG_USERNAME Text text no Username
password WALLABAG_PASSWORD Secret secret no Password
url WALLABAG_URL Text text no Instance URL

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call wallabag.wallabag_token_password '{}' --json
Provider shortcut
kosmo integrations:wallabag wallabag_token_password '{}' --json

Discovery

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

Discovery commands
kosmo integrations:docs wallabag --json
kosmo integrations:docs wallabag.wallabag_token_password --json
kosmo integrations:schema wallabag.wallabag_token_password --json
kosmo integrations:search "wallabag" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

wallabag.wallabag_token_password

Exchange wallabag client and user credentials for an access token.

Write write
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_token_password '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_token_password '{}' --json

wallabag.wallabag_token_refresh

Refresh a wallabag access token.

Write write
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_token_refresh '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_token_refresh '{}' --json

wallabag.wallabag_entries_list

List wallabag entries with filters and pagination.

Read read
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_entries_list '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_entries_list '{}' --json

wallabag.wallabag_entries_create

Create a wallabag entry from a URL.

Write write
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_entries_create '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_entries_create '{}' --json

wallabag.wallabag_entries_exists

Check whether a URL already exists in wallabag.

Read read
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_entries_exists '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_entries_exists '{}' --json

wallabag.wallabag_entries_get

Get one wallabag entry.

Read read
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_entries_get '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_entries_get '{}' --json

wallabag.wallabag_entries_update

Update title, archived/starred state, tags, or other entry fields.

Write write
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_entries_update '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_entries_update '{}' --json

wallabag.wallabag_entries_delete

Delete one wallabag entry.

Write write
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_entries_delete '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_entries_delete '{}' --json

wallabag.wallabag_entries_reload

Refetch and reload a wallabag entry.

Write write
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_entries_reload '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_entries_reload '{}' --json

wallabag.wallabag_entries_export

Export an entry as epub, mobi, pdf, txt, csv, json, or xml.

Read read
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_entries_export '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_entries_export '{}' --json

wallabag.wallabag_tags_list

List wallabag tags.

Read read
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_tags_list '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_tags_list '{}' --json

wallabag.wallabag_entry_tags_add

Add comma-separated tags to an entry.

Write write
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_entry_tags_add '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_entry_tags_add '{}' --json

wallabag.wallabag_entry_tag_delete

Remove one tag from an entry.

Write write
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_entry_tag_delete '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_entry_tag_delete '{}' --json

wallabag.wallabag_annotations_list

List annotations for a wallabag entry.

Read read
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_annotations_list '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_annotations_list '{}' --json

wallabag.wallabag_annotations_create

Create an annotation for a wallabag entry.

Write write
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_annotations_create '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_annotations_create '{}' --json

wallabag.wallabag_annotations_update

Update a wallabag annotation.

Write write
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_annotations_update '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_annotations_update '{}' --json

wallabag.wallabag_annotations_delete

Delete a wallabag annotation.

Write write
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_annotations_delete '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_annotations_delete '{}' --json

wallabag.wallabag_api_get

Call a safe relative wallabag API GET path.

Read read
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_api_get '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_api_get '{}' --json

wallabag.wallabag_api_post

Call a safe relative wallabag API POST path.

Write write
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_api_post '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_api_post '{}' --json

wallabag.wallabag_api_patch

Call a safe relative wallabag API PATCH path.

Write write
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_api_patch '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_api_patch '{}' --json

wallabag.wallabag_api_delete

Call a safe relative wallabag API DELETE path.

Write write
Parameters
none
Generic call
kosmo integrations:call wallabag.wallabag_api_delete '{}' --json
Shortcut
kosmo integrations:wallabag wallabag_api_delete '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

wallabag.wallabag_token_password 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_token_password --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_token_refresh 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_token_refresh --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_entries_list 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_entries_list --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_entries_create 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_entries_create --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_entries_exists 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_entries_exists --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_entries_get 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_entries_get --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_entries_update 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_entries_update --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_entries_delete 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_entries_delete --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_entries_reload 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_entries_reload --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_entries_export 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_entries_export --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_tags_list 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_tags_list --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_entry_tags_add 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_entry_tags_add --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_entry_tag_delete 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_entry_tag_delete --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_annotations_list 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_annotations_list --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_annotations_create 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_annotations_create --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_annotations_update 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_annotations_update --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_annotations_delete 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_annotations_delete --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_api_get 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_api_get --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_api_post 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_api_post --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_api_patch 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_api_patch --json
ParameterTypeRequiredDescription
No parameters.
wallabag.wallabag_api_delete 0 parameters
Schema command
kosmo integrations:schema wallabag.wallabag_api_delete --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.