{"id":26091482,"url":"https://github.com/codegen-sh/codegen","last_synced_at":"2026-01-15T01:36:22.428Z","repository":{"id":274847848,"uuid":"920229736","full_name":"codegen-sh/codegen","owner":"codegen-sh","description":"Python wrapper for the Codegen API - run code agents at scale","archived":false,"fork":false,"pushed_at":"2026-01-01T18:05:09.000Z","size":32537,"stargazers_count":516,"open_issues_count":206,"forks_count":62,"subscribers_count":6,"default_branch":"develop","last_synced_at":"2026-01-04T21:57:59.566Z","etag":null,"topics":["agents","python","sdk"],"latest_commit_sha":null,"homepage":"https://codegen.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codegen-sh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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":"CLA.md"}},"created_at":"2025-01-21T19:35:33.000Z","updated_at":"2025-12-30T04:50:35.000Z","dependencies_parsed_at":"2025-02-12T19:21:18.391Z","dependency_job_id":"14f138ba-cdd9-4dc3-903c-cda2ce0ed9b8","html_url":"https://github.com/codegen-sh/codegen","commit_stats":null,"previous_names":["codegen-sh/codegen-sdk","codegen-sh/codegen"],"tags_count":239,"template":false,"template_full_name":null,"purl":"pkg:github/codegen-sh/codegen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegen-sh%2Fcodegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegen-sh%2Fcodegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegen-sh%2Fcodegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegen-sh%2Fcodegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codegen-sh","download_url":"https://codeload.github.com/codegen-sh/codegen/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegen-sh%2Fcodegen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28441031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"ssl_error","status_checked_at":"2026-01-15T00:55:20.945Z","response_time":107,"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":["agents","python","sdk"],"created_at":"2025-03-09T10:01:50.352Z","updated_at":"2026-01-15T01:36:22.420Z","avatar_url":"https://github.com/codegen-sh.png","language":"Python","readme":"\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://docs.codegen.com\"\u003e\n    \u003cimg src=\"https://i.imgur.com/6RF9W0z.jpeg\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch2 align=\"center\"\u003e\n  The SWE that Never Sleeps\n\u003c/h2\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![PyPI](https://img.shields.io/badge/PyPi-codegen-gray?style=flat-square\u0026color=blue)](https://pypi.org/project/codegen/)\n[![Documentation](https://img.shields.io/badge/Docs-docs.codegen.com-purple?style=flat-square)](https://docs.codegen.com)\n[![Slack Community](https://img.shields.io/badge/Slack-Join-4A154B?logo=slack\u0026style=flat-square)](https://community.codegen.com)\n[![License](https://img.shields.io/badge/Code%20License-Apache%202.0-gray?\u0026color=gray)](https://github.com/codegen-sh/codegen-sdk/tree/develop?tab=Apache-2.0-1-ov-file)\n[![Follow on X](https://img.shields.io/twitter/follow/codegen?style=social)](https://x.com/codegen)\n\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\nThe Codegen SDK provides a programmatic interface to code agents provided by [Codegen](https://codegen.com).\n\n```python\nfrom codegen.agents.agent import Agent\n\n# Initialize the Agent with your organization ID and API token\nagent = Agent(\n    org_id=\"YOUR_ORG_ID\",  # Find this at codegen.com/token\n    token=\"YOUR_API_TOKEN\",  # Get this from codegen.com/token\n    # base_url=\"https://codegen-sh-rest-api.modal.run\",  # Optional - defaults to production\n)\n\n# Run an agent with a prompt\ntask = agent.run(prompt=\"Implement a new feature to sort users by last login.\")\n\n# Check the initial status\nprint(task.status)\n\n# Refresh the task to get updated status (tasks can take time)\ntask.refresh()\n\n# Check the updated status\nprint(task.status)\n\n# Once task is complete, you can access the result\nif task.status == \"completed\":\n    print(task.result)  # Result often contains code, summaries, or links\n```\n\n## Installation and Usage\n\nInstall the SDK using pip, pipx, or uv:\n\n```bash\npip install codegen\n# or\npipx install codegen\n# or\nuv tool install codegen\n```\n\n### Keeping Up to Date\n\nThe Codegen CLI includes a built-in self-update system:\n\n```bash\n# Update to the latest version\ncodegen update\n\n# Check for available updates\ncodegen update --check\n\n# Update to a specific version\ncodegen update --version 1.2.3\n```\n\nThe CLI automatically checks for updates daily and notifies you when a new version is available.\n\nGet started at [codegen.com](https://codegen.com) and get your API token at [codegen.com/token](https://codegen.com/token).\n\nYou can interact with your AI engineer via API, or chat with it in Slack, Linear, Github, or on our website.\n\n## Resources\n\n- [Docs](https://docs.codegen.com)\n- [Getting Started](https://docs.codegen.com/introduction/getting-started)\n- [Contributing](CONTRIBUTING.md)\n- [Contact Us](https://codegen.com/contact)\n\n## Contributing\n\nPlease see our [Contributing Guide](CONTRIBUTING.md) for instructions on how to set up the development environment and submit contributions.\n\n## Enterprise\n\nFor more information on enterprise engagements, please [contact us](https://codegen.com/contact) or [request a demo](https://codegen.com/request-demo).\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodegen-sh%2Fcodegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodegen-sh%2Fcodegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodegen-sh%2Fcodegen/lists"}