bezbaseina
v1.1.0
Published
BezBaseina command line — manage property ads, photos, leads and AI assistance. Includes an MCP server for ChatGPT, Claude, Codex and Antigravity.
Maintainers
Readme
bezbaseina
Manage your BezBaseina.lv property ads, photos, leads and AI assistance from the terminal — and connect ChatGPT, Claude, Codex or Antigravity via the built-in MCP server.
Programmatic access (CLI / API / MCP) requires the Pro plan.
Install
npm install -g bezbaseina
# or run without installing:
npx -y bezbaseina@latest loginLog in
bezbaseina loginOpens your browser, you approve the connection while signed in, and a scoped
token is stored at ~/.config/bezbaseina/config.json (mode 600). No password
is ever typed into the terminal.
Everyday commands
bezbaseina whoami
bezbaseina ads list
# Create a listing (goes live immediately on Pro)
bezbaseina ads create --title "Gaišs 3 istabu dzīvoklis Torņakalnā" \
--city riga --deal rent --price 375 --rooms 3 --district "Torņakalns" \
--amenities wifi,stavvieta --description-file ./desc.txt \
--photo-urls "https://…/1.jpg,https://…/2.jpg"
# or add files after: bezbaseina photos upload prop_… ./1.jpg
bezbaseina ads get ad_… # detail incl. photo handles
bezbaseina ads update ad_… --price 400 --title "…" # edit any field(s)
bezbaseina ads delete ad_… # remove from site (asks; --yes to skip)
bezbaseina ads analyse ad_… # AI quality score + checklist
bezbaseina ads improve-text ad_… --tone warm
bezbaseina ads suggest-price ad_… # range + confidence, never changes price
bezbaseina ads publish ad_… # asks before applying (--yes to skip)
bezbaseina ads pause ad_…
bezbaseina ads price ad_… 400
bezbaseina photos upload prop_… ./kitchen.jpg
bezbaseina photos enhance photo_… # safe enhancement, original kept
bezbaseina photos delete photo_…
bezbaseina photos reorder ad_… photo_… photo_… … # first = hero
bezbaseina leads list
bezbaseina leads draft-reply lead_… # drafts only, never sendscreate / update fields: --title --city --deal rent|sale|nightly --price
--kind apartment|house|land|commercial --season --district --address --rooms
--size --floor --total-floors --era --amenities a,b,c --description(-file)
--owner-name --phone --lat --lon --photo-urls url,url --building-code --parcel-code.
--jsonon any command prints raw API JSON for scripting/agents.- Risky actions (publish, pause, price, delete) preview a diff and ask;
--yesapplies in one step for automation. - Non-zero exit codes on error; the error
codeis stable.
Connect an assistant (MCP)
bezbaseina mcp startExposes the full owner toolset over stdio so ChatGPT/Claude/Codex/agents can manage listings: browse public listings, list/inspect ads, analyse, improve text, suggest price, create/update/delete listings, reorder/delete photos, publish/pause/change price, and list leads / draft replies. Point any MCP client at it, e.g. Claude Code:
{ "mcpServers": { "bezbaseina": { "command": "npx", "args": ["-y", "bezbaseina@latest", "mcp", "start"] } } }Risky mutations (publish, pause, price, delete) are confirm-gated: the tool
returns a confirmation with a diff; the agent reviews it and then calls
confirm_action to apply. This keeps a visible review step before anything
public changes — the same two-phase flow the CLI uses.
Config & env
| Env | Purpose |
|---|---|
| BEZBASEINA_API | API base (default https://bezbaseina.lv) |
| BEZBASEINA_TOKEN | Use a token without login (CI) |
| BEZBASEINA_CONFIG | Alternate config file path |
Full API reference: https://bezbaseina.lv/developers · OpenAPI: https://bezbaseina.lv/api/v1/openapi.json
