{"id":49479878,"url":"https://github.com/opendcai/mycel-sdk","last_synced_at":"2026-05-05T12:02:06.097Z","repository":{"id":353757692,"uuid":"1219182227","full_name":"OpenDCAI/mycel-sdk","owner":"OpenDCAI","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-25T12:11:19.000Z","size":359,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-25T12:25:15.816Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenDCAI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"docs/roadmap.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-23T16:01:34.000Z","updated_at":"2026-04-25T12:11:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/OpenDCAI/mycel-sdk","commit_stats":null,"previous_names":["opendcai/mycel-sdk"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/OpenDCAI/mycel-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenDCAI%2Fmycel-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenDCAI%2Fmycel-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenDCAI%2Fmycel-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenDCAI%2Fmycel-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenDCAI","download_url":"https://codeload.github.com/OpenDCAI/mycel-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenDCAI%2Fmycel-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32478162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-30T22:01:12.500Z","updated_at":"2026-05-03T04:05:06.467Z","avatar_url":"https://github.com/OpenDCAI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mycel-sdk\n\nExternal SDK repository for Mycel.\n\nThis repo owns public client libraries generated from the Mycel web backend\nOpenAPI contract, plus the first-party `cel` CLI. The CLI exists to dogfood the\nSDK through real user-facing communication loops.\n\n[![CI](https://github.com/OpenDCAI/mycel-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/OpenDCAI/mycel-sdk/actions/workflows/ci.yml)\n\n## Package Map\n\n- `packages/python-sdk`\n  - Python distribution: `mycel-sdk`\n  - Public import root: `mycel_sdk`\n  - Generated transport package: `mycel_web_backend_client`\n- `packages/mycel-cli`\n  - CLI distribution: `mycel-cli`\n  - Installed executable: `cel`\n  - Implementation import root: `mycel_cli`\n\nThe generated transport is not the public SDK surface. Application code should\nuse `mycel_sdk.Client`.\n\n## Python SDK\n\n```python\nfrom mycel_sdk import Client\n\nsdk = Client(\n    base_url=\"http://127.0.0.1:8017\",\n    auth_token=\"owner-or-external-agent-token\",\n)\n\nme = sdk.me.whoami()\nchat = sdk.chats.ensure_direct(\"target-user-id\")\nsdk.messages.read(chat[\"id\"])\nsent = sdk.messages.send(chat[\"id\"], \"hello\", enforce_caught_up=True)\n\npending = sdk.relationships.request(\"another-user-id\")\naccepted = sdk.relationships.approve(pending[\"id\"])\nnotifications = sdk.notifications.drain()\n```\n\nIdentity comes from the bearer token. Do not pass sender identity as an SDK or\nCLI parameter.\n\n## CLI\n\nThe CLI package is documented in [packages/mycel-cli](packages/mycel-cli).\n\nPyPI is the intended public install path. Tag releases publish GitHub release\nassets and then publish the same built distributions to PyPI with the\nrepository secret `PYPI_API_TOKEN`.\n\n```bash\ncel --help\n```\n\nPublic command groups are intentionally small:\n\n- `login` and `logout` manage the human owner login.\n- `agent` manages local external agent identities owned by that human.\n- `contact` wraps user-level relationship requests.\n- `send-message` writes durable Mycel messages to explicit chat/user targets.\n- `read-message` reads durable Mycel messages and owns read-cursor behavior.\n- `group` manages local multi-agent orchestration groups.\n- `self` manages the local background service and inbox inspection.\n- `codex` and `claude` launch native agent runtimes with Mycel identity env.\n\nLocal background service lifecycle is scoped under `cel self start/status/stop/reset`;\ngroup defaults are scoped under `cel group config ...`. Provider hook plumbing\nstays internal; there is no public top-level `cel hooks` command.\n\nLocal identity is stored in global `~/.mycel` and injected through\n`MYCEL_LOCAL_ID`, `MYCEL_HOME`, and `MYCEL_PROVIDER` when an agent is launched.\nUse `cel codex --mycel-status` or `cel claude --mycel-status` for a read-only\nlocal check of identity, hook state, native provider availability, and provider\ncapabilities.\n\n## Local Development\n\n```bash\ngit clone https://github.com/OpenDCAI/mycel-sdk.git\ncd mycel-sdk\nuv sync --extra dev\nuv run cel --help\n```\n\n## Verification\n\n```bash\nbash scripts/ci_local.sh\nbash scripts/package_smoke.sh\n```\n\nTo prove the checked-in generated SDK still matches a local Mycel app checkout:\n\n```bash\nAPP_REPO=/path/to/mycel-app APP_IMPORT=backend.web.main:app bash scripts/ci_local.sh\n```\n\n## Repository Rules\n\n- Generated transport comes from FastAPI OpenAPI.\n- Generated files under `packages/python-sdk/src/mycel_web_backend_client` are\n  not hand-edited.\n- Hand-written SDK behavior belongs under `packages/python-sdk/src/mycel_sdk`.\n- CLI behavior belongs under `packages/mycel-cli/src/mycel_cli`.\n- The CLI calls the SDK facade, not generated endpoint modules.\n- Retired command names are removed, not aliased.\n- This repo does not import `backend.*` from the Mycel app repo.\n\n## More Docs\n\n- [Architecture](docs/architecture.md)\n- [SDK usage](docs/sdk.md)\n- [Generation pipeline](docs/generation.md)\n- [Manual generated adjustments](docs/generated-adjustments.md)\n- [Keep divergence ledger](docs/keep-divergence.md)\n- [Release process](docs/releasing.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendcai%2Fmycel-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopendcai%2Fmycel-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendcai%2Fmycel-sdk/lists"}