Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

geki

Latest version: v1.20.0

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
PyPI package Publisher: wuttem
43 Versions
3.1K Downloads

Scan summary

geki was last scanned on 26 Nov 2026 at version 1.20.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 43 versions; the latest 3 were published within 4 days (23–26 Nov 2026).
  • Findings: No rules fired in version 1.20.0.
  • Downloads: 3,135 downloads.

Versions

43 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.20.0 LATEST 26 Nov 2026 No rules fired
1.19.0 25 Nov 2026 No rules fired
1.18.1 23 Nov 2026 No rules fired
1.18.0 19 Nov 2026 Not shown
1.17.0 18 Nov 2026 Not shown

No rules fired in 1.20.0

Findings

Findings for v1.20.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.20.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

geki

Python client for the GEKI API.

pip install geki

Python 3.12 or newer.

Stability

The GEKI API has three levels. The model API (/v1/models, /v1/chat/completions, /v1/embeddings) is stable. The bots API (bots, triggers, runs) is beta and will become stable. Everything else (agents, sessions, vaults, files, uploads, skills, knowledge bases) is beta and may change without a transition. This package stays 0.x while the bots API is beta. Update it when a beta call breaks.

For the model API you can also use the OpenAI SDK with base_url="https://api.geki.ai/v1".

Auth

Create an API key in the GEKI Console. Pass it or set GEKI_API_KEY. GEKI_API_URL changes the base URL (default https://api.geki.ai/v1).

from geki import Geki

client = Geki()  # reads GEKI_API_KEY

Key, health and usage

me = client.me()  # org_id, subject_id, subject_kind, permissions of this key
client.health()  # {"status": "ok"}, without the key

report = client.usage.query(
    start="2026-10-01T00:00:00Z", end="2026-11-01T00:00:00Z", groupings=[["model"], ["day"]]
)
print(report.totals.billed_eur)
for row in client.usage.requests(model="glm-5.3-flash", limit=20).data:
    print(row.ts, row.input_tokens, row.output_tokens)

Usage covers the key's org and needs usage:read.

Extra headers

with_headers returns a client that sends the headers on every call. It shares the connections of the client it came from.

tagged = client.with_headers({"x-request-id": "nightly-42"})
tagged.chat.completions.create(model="glm-5.3-flash", messages=[{"role": "user", "content": "Hi"}])

Bots

bot = client.bots.create(name="Invoices", model="glm-5.3-flash", instructions="Sort invoices.")
client.bots.update(bot.id, tags=["finance"])

caps = client.bots.capabilities(bot.id)
client.bots.publish(
    bot.id,
    acknowledgements=[{"id": e.id, "fingerprint": e.fingerprint} for e in caps.entries],
)

for row in client.bots.iter(status="live"):
    print(row.id, row.name)

A bot can work with each person's Microsoft 365 when a Microsoft connector has the microsoft365 feature. Areas are mail, calendar, files (read or read_write), people, and meetings (read):

client.bots.update(bot.id, microsoft365={"mail": "read_write", "calendar": "read"})

Triggers and runs:

trigger = client.triggers.create(bot.id, kind="on_demand", input_prompt="Summarize today.")
run = client.triggers.fire(bot.id, trigger.id, input="Only open tickets.")
print(client.runs.get(run.id).status)

triggers.fire runs a cron or on-demand trigger now, also while it is turned off. An on-demand trigger returns a token and a Standard Webhooks secret once. Send to its hook with either:

hook = client.triggers.create(bot.id, kind="on_demand", input_prompt="New ticket:")
client.hooks.send(hook.id, {"ticket": 42}, secret=hook.secret)
client.hooks.send(hook.id, {"ticket": 43}, token=hook.token)

geki.webhooks.sign(secret, body) returns the Standard Webhooks headers if you send the request yourself.

Model settings

The org picks where tokens come from. model="default" is the org default model. Changes need models:write.

print(client.model_settings.get().default_model)
client.model_settings.update(default_model="glm-5.3-flash", geki_enabled=False)
client.model_settings.update({"geki_enabled": None})
client.model_settings.update(assistant_model="glm-5.3-flash")  # the Console assistant
client.model_settings.update(disabled_models=["glm-5.3-flash"])  # the org may not use it

None in a mapping removes the org's own value, so it inherits again.

MCP connectors

An MCP connector is an org entry for an MCP server. Bots name it with {"type": "mcp", "connector_id": connector.id}. The auth mode is none, shared (a credential_id of an org vault), or per_person: each person saves a token, or signs in at the OAuth app.

jira = client.mcp_connectors.create(
    label="jira", url="https://jira.example/mcp", auth_mode="per_person"
)
client.mcp_connectors.put_token(jira.id, "my-token")  # the caller's own, write-only
found = client.mcp_connectors.probe(url="https://crm.example/mcp")  # OAuth, and which client
crm = client.mcp_connectors.create(
    label="crm",
    url="https://crm.example/mcp",
    auth_mode="per_person",
    oauth={"mode": "discover"},
)
start = client.mcp_connectors.connect(crm.id, return_url="https://chat.example/settings")
offered = client.mcp_connectors.tools(jira.id)  # names, titles, and the server's hints
client.bots.update(bot.id, tools=[{"type": "mcp", "connector_id": jira.id}])
erp = client.mcp_connectors.create(  # a server on localhost of a tunnel agent
    label="erp", url="http://localhost:9000/mcp", tunnel_id=tunnel.id
)

Tunnels

A tunnel stands for one server of the org. A tunnel agent on that server trades the join token for its credential. The join token is shown once.

tunnel = client.tunnels.create(name="erp")
print(tunnel.join_token)  # works once, for one hour
client.tunnels.get(tunnel.id).connected  # true while the agent is connected
client.tunnels.update(tunnel.id, enabled=False)
again = client.tunnels.new_join_token(tunnel.id)  # revokes the old credential
client.tunnels.delete(tunnel.id)

Skill credentials

A bot maps each credential name its skills declare to an OAuth app (each person's own account) or to an org vault credential:

client.bots.update(
    bot.id,
    skill_credentials={
        "GITHUB_TOKEN": {"oauth_app_id": app.id},
        "CRM_KEY": {"credential_id": credential.id},
    },
)

OAuth apps and connected accounts

An OAuth app is an org object for any OAuth provider. A connected account is one person's sign-in. The client secret is write-only, and no response holds a token.

app = client.oauth_apps.create(
    name="CRM",
    authorize_url="https://crm.example/oauth/authorize",
    token_url="https://crm.example/oauth/token",
    client_id="…",
    client_secret="…",
    scopes=["read"],
)
start = client.oauth_apps.connect(app.id, return_url="https://chat.example/settings")
print(start.authorize_url)  # send the browser here
for account in client.connected_accounts.iter():
    print(account.provider_name, account.label, account.status)
client.connected_accounts.disconnect(account.id)

connected_accounts.list(all=True) lists every account of the org for a key with connector:write. oauth_apps.client_credentials(app.id, vault_id=...) gets a token for an app with the client_credentials grant.

A source has a classification level or none: 1 Public, 2 Internal, 3 Restricted, 4 Regulated. The level changes nothing a bot may do.

client.classifications.set("knowledge_base", kb.id, 3)  # None clears it
client.classifications.set("suite", "microsoft365", 2)  # or "google_workspace"
for item in client.classifications.iter():
    print(item.kind, item.id, item.level)

client.access.overview() returns who reaches which data: the people, the groups with their members, the bots with their groups and sources, and the levels. It needs an Owner or Admin. The CLI has geki access overview.

Connectors and channels

A connector is a Slack app or a Microsoft (Teams) app of your org. Credentials are write-only.

slack = client.connectors.create(
    provider="slack",
    name="Acme Slack",
    credentials={"bot_token": "xoxb-…", "signing_secret": "…"},
    settings={"bot_ids": [bot.id], "entry_bot_id": bot.id},
)
app = client.connectors.manifest(slack.id, name="Acme Bots")
client.connectors.update(slack.id, manifest_version=app.version)
print(client.connectors.test(slack.id).status)
for channel in client.connectors.channels(slack.id):
    print(channel.id, channel.name, channel.default_bot_id)
client.connectors.set_channel(slack.id, "C123", default_bot_id=bot.id)

A Microsoft connector has features. teams_package returns the Teams app zip:

teams = client.connectors.create(
    provider="microsoft",
    name="Acme Teams",
    credentials={
        "tenant_id": "…",
        "app_id": "…",
        "client_secret": "…",
        "secret_expires_at": "2027-04-01",
    },
    features=["teams", "teams_files"],
)
package = client.connectors.teams_package(
    teams.id,
    name="Acme Bots",
    publisher={
        "name": "MSP GmbH",
        "website": "https://msp.example",
        "privacy_url": "https://msp.example/privacy",
        "terms_url": "https://msp.example/terms",
    },
)
open("acme-bots.zip", "wb").write(package.content)

The feature microsoft365 gives bots each person's mail, calendar, files, people, and meetings. It needs delegated Graph permissions that the tenant admin consents to once:

setup = client.connectors.microsoft365(teams.id)
print(setup.scopes, setup.redirect_uri, setup.admin_consent_url, setup.missing_scopes)
start = client.connectors.connect_microsoft365(
    teams.id,
    return_url="https://chat.example/settings",
    prompt="none",
    login_hint="ada@acme.example",
)

A trigger posts its answer to channels with outputs:

client.triggers.update(
    bot.id,
    trigger.id,
    outputs=[{"connector_id": slack.id, "channel_id": "C123"}],
    notify_on_failure=True,
)

Setting or changing outputs needs connector:write. iter_all lists the triggers of the org, here the ones that post through one connector:

posting = list(client.triggers.iter_all(connector_id=slack.id))

Default bot

Each org has one default bot. Members tune it within what the org allows.

slot = client.personal_bot.create()  # get() reads without creating
client.personal_bot.put_settings(instructions="Answer in German.", web_search=True)

session = client.sessions.create(
    agent_id=slot.agent_id, personal_options={"workspace": False, "web_search": True}
)
client.sessions.update(session.id, personal_options={"web_search": False})

The owner edits the slot like any bot, with member_options in the draft.

Owners and admins read personal sessions of other people only after a takeover for 2 hours. Each takeover is a row of an audit log:

client.session_takeovers.create()  # a running takeover is returned, not added again
for row in client.session_takeovers.iter(active=True):
    print(row.subject_id, row.until)

Responses

Every call returns a Pydantic model from geki.models. Fields the client does not know yet stay available in model_extra. to_dict() returns plain JSON.

Lists return one page (data, has_more, last_id). iter() walks all pages:

page = client.runs.list(bot_id=bot.id, limit=20)
for run in client.runs.iter(bot_id=bot.id, max_pages=5):
    ...

client.request(method, path, ...) calls any route and returns the JSON.

Errors

Errors raise geki.GekiError with status, code, message, param, fields, entries and request_id. Branch on the class or on code:

Class When
BadRequest 400, 413 and other 4xx
AuthError 401, 403
BudgetExhausted 402
NotFound 404
Conflict 409; conflicts lists PushConflict(path, base_sha256, current_sha256) for a Knowledge Base push_conflict
AcknowledgementRequired 409 acknowledgement_required; entries lists what to acknowledge
RateLimited 429; retry_after in seconds
ServerError 5xx
APIConnectionError, APITimeoutError no response

Embeddings

Use the id of an embedding model from client.models.list(). The GEKI catalog has none today.

result = client.embeddings.create(model="my-embedding-model", input=["first", "second"])
vectors = [item.embedding for item in result.data]

Streaming

Session events and chat completions stream as server-sent events. send posts one input event and returns when the API accepted it (202). send_stream streams that turn until it ends, message waits for the turn and returns the session. stream_events follows the session and stays open; events reads every stored event, page by page, into one page. Event fields are at the top level, as at OpenAI (event_id, type, delta, …); a failure is the event error with error.code and error.message. Timestamps of sessions, turns, items, artifacts, agents and vaults are Unix seconds.

turns, items and artifacts return one page, newest first. iter_turns, iter_items and iter_artifacts walk the whole session, oldest first. A message item has role and content, a list of parts with type and text.

from geki import message_event

session = client.sessions.create(agent_id=agent.id, environment={"type": "none"})
with client.sessions.send_stream(session.id, message_event("Hello")) as stream:
    for event in stream:
        print(event.event, event.json())

preview = client.sessions.create(preview={"bot_id": bot.id, "state": "draft"})
assistant = client.sessions.create(assistant={})  # the Console assistant
client.sessions.message(assistant.id, "Shorten the purpose.", metadata={"page": "bot-editor"})
current = client.sessions.list(preview_bot_id=bot.id, preview_state="draft", current_preview=True)

for chunk in client.chat.completions.stream(
    model="glm-5.3-flash", messages=[{"role": "user", "content": "Hi"}]
):
    print(chunk["choices"][0]["delta"].get("content", ""), end="")

Files and skills

client.files.create("report.pdf", purpose="user_data")
content = client.files.content(file_id)  # Download(content, content_type, filename)
client.skills.create("skill.zip", name="Mail")
client.uploads.upload("big.csv", purpose="file")  # presigned upload for large files

Knowledge Bases

Pages are text files that bots read and maintain. Each push is one revision and names the sha each change is based on (None for a new page). Knowledge Bases belong to the organization. Your own memory is separate (below).

kb = client.knowledge_bases.create(name="Wiki", template="company_wiki")
page = client.knowledge_bases.page(kb.id, "overview.md")
client.knowledge_bases.push(
    kb.id,
    message="Add the travel policy",
    changes=[{"op": "put", "path": "travel.md", "content": "...", "base_sha256": None}],
)
manifest, etag = client.knowledge_bases.manifest(kb.id)
same, _ = client.knowledge_bases.manifest(kb.id, etag=etag)  # None when unchanged
old = client.knowledge_bases.page(kb.id, "overview.md", revision=1)
client.knowledge_bases.restore(kb.id, "overview.md", revision=1)
recent = client.knowledge_bases.pages(kb.id, sort="updated", limit=50)  # a window; also q, folders
detail = client.knowledge_bases.revision(kb.id, 2, paths=["travel.md"])  # diffs for these paths
chat = client.knowledge_bases.open_curator(kb.id)  # a session with the built-in curator

Memory

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases geki

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229