{"id":50526251,"url":"https://github.com/jstibal/openterms-examples","last_synced_at":"2026-06-03T08:04:16.110Z","repository":{"id":357945200,"uuid":"1234856449","full_name":"jstibal/openterms-examples","owner":"jstibal","description":"Runnable OpenTerms examples for Python, LangChain, and CrewAI using fail-closed permission checks.","archived":false,"fork":false,"pushed_at":"2026-05-14T23:08:50.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-15T01:19:37.147Z","etag":null,"topics":["agent-tools","ai-agents","crewai","examples","fail-closed","langchain","machine-readable","openterms","permissions","python"],"latest_commit_sha":null,"homepage":"https://openterms.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jstibal.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":null,"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-05-10T18:21:11.000Z","updated_at":"2026-05-14T23:08:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jstibal/openterms-examples","commit_stats":null,"previous_names":["jstibal/openterms-examples"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jstibal/openterms-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstibal%2Fopenterms-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstibal%2Fopenterms-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstibal%2Fopenterms-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstibal%2Fopenterms-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jstibal","download_url":"https://codeload.github.com/jstibal/openterms-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstibal%2Fopenterms-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33854130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["agent-tools","ai-agents","crewai","examples","fail-closed","langchain","machine-readable","openterms","permissions","python"],"created_at":"2026-06-03T08:04:15.103Z","updated_at":"2026-06-03T08:04:16.105Z","avatar_url":"https://github.com/jstibal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openterms-examples\n\nMinimal examples showing how to use [OpenTerms](https://openterms.com) with the core Python SDK, LangChain, and CrewAI.\n\nEvery example runs without hitting any live API.\n\n## What is OpenTerms?\n\nOpenTerms is a machine-readable permissions protocol for the agentic web. Services publish an `openterms.json` file that describes what automated agents are and are not allowed to do. Agents read that file before acting.\n\n```json\n{\n  \"version\": \"1.0\",\n  \"service\": \"example-service\",\n  \"permissions\": {\n    \"read_content\": { \"status\": \"allowed\" },\n    \"scrape_data\": { \"status\": \"denied\" },\n    \"api_access\": { \"status\": \"not_specified\" }\n  }\n}\n```\n\nAgents check a key, get back a decision, and proceed only if the decision is `allow`.\n\n## Structure\n\n```text\nopenterms-examples/\n├── examples/\n├── fixtures/\n└── tests/\n```\n\n## Fail-Closed Model\n\nDefault behavior: block unless explicitly allowed.\n\n| OpenTerms status | Strict mode default | Permissive mode opt-in |\n|---|---|---|\n| `allowed` | Proceed | Proceed |\n| `denied` | Block | Block |\n| `not_specified` | Block | Proceed |\n| `conditional` | Block | Proceed |\n| key absent | Block | Proceed |\n\nPermissive mode must always be an explicit opt-in. It is never the default.\n\n## Canonical Permission Keys\n\n| Key | What it covers |\n|---|---|\n| `read_content` | Reading or parsing public content |\n| `scrape_data` | Structured data extraction or crawling |\n| `api_access` | Calling the service API programmatically |\n| `create_account` | Registering accounts or identities |\n| `make_purchases` | Executing transactions |\n| `post_content` | Submitting or publishing content |\n| `allow_training` | Using content for ML model training |\n\n## Registry Records Disclaimer\n\nRegistry records are informational records. Treat them as one input to agent decision logic.\n\n## Installation\n\n```bash\npip install \"openterms-py\u003e=0.3.1\"\n```\n\nOptional integrations:\n\n```bash\npip install langchain-openterms\npip install crewai-openterms\n```\n\n## Running the Examples\n\n```bash\npython examples/core_sdk_minimal.py\npython examples/core_sdk_fail_closed.py\npython examples/mock_openterms_json.py\npython -m pytest tests/ -v\n```\n\n## Links\n\n- OpenTerms homepage: https://openterms.com\n- OpenTerms developer docs: https://openterms.com/sdk\n- OpenTerms specification: https://openterms.com/docs\n- openterms-py on PyPI: https://pypi.org/project/openterms-py/\n- langchain-openterms on GitHub: https://github.com/jstibal/langchain-openterms\n- crewai-openterms on GitHub: https://github.com/jstibal/crewai-openterms\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstibal%2Fopenterms-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjstibal%2Fopenterms-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstibal%2Fopenterms-examples/lists"}