{"id":19424712,"url":"https://github.com/tjamet/goterm2","last_synced_at":"2026-05-15T00:42:07.469Z","repository":{"id":57595809,"uuid":"202750015","full_name":"tjamet/goterm2","owner":"tjamet","description":"Go implementation of the python iterm2 library","archived":false,"fork":false,"pushed_at":"2019-10-02T10:19:35.000Z","size":362,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T19:14:10.806Z","etag":null,"topics":["experimental","extensions","golang-library","iterm2"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tjamet.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}},"created_at":"2019-08-16T15:12:28.000Z","updated_at":"2023-07-19T22:05:23.000Z","dependencies_parsed_at":"2022-09-12T09:11:52.521Z","dependency_job_id":null,"html_url":"https://github.com/tjamet/goterm2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjamet%2Fgoterm2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjamet%2Fgoterm2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjamet%2Fgoterm2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjamet%2Fgoterm2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjamet","download_url":"https://codeload.github.com/tjamet/goterm2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240605714,"owners_count":19827981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["experimental","extensions","golang-library","iterm2"],"created_at":"2024-11-10T13:45:17.238Z","updated_at":"2026-05-15T00:42:07.443Z","avatar_url":"https://github.com/tjamet.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang implementation of iterm2 python's remote API\n\n[![GoDoc](https://godoc.org/github.com/tjamet/goterm2?status.svg)](http://godoc.org/github.com/tjamet/goterm2)\n\n# Notice\n\nThe code is in early stage and the repository currently doesn't offer all features provided by the [python reference implementation](https://github.com/gnachman/iTerm2/tree/master/api/library/python/iterm2)\n\nThe provided primitives are currently low level\n\n# Usage\n\nTo list all current iterm sessions, copy the following lines\n\n```\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\tlog \"github.com/sirupsen/logrus\"\n\titerm2 \"github.com/tjamet/goterm2\"\n\t\"github.com/tjamet/goterm2/api\"\n)\n\nfunc main() {\n\tlogger := log.New()\n\tlogger.SetOutput(os.Stdout)\n\tlogger.SetLevel(log.TraceLevel)\n\ti, err := iterm2.New()\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\tos.Exit(1)\n\t}\n\ti.Logger(logger)\n\tfmt.Println(i.ListSessions(\u0026api.ListSessionsRequest{}))\n}\n```\n\nThis library requires your iterm to be configured to run the `Python API` in the menus: `iTerm2` \u003e `Preferences` \u003e `general` \u003e `magic`\nas shown below\n\n![](img/settings.png)\n\nYou will then need to accept the connection as shown below\n\n![](img/accept.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjamet%2Fgoterm2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjamet%2Fgoterm2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjamet%2Fgoterm2/lists"}