We assume you have already integrated Codio with Canvas, if not then refer to this article.
Steps to copy or fork the Course in Canvas:
In Codio, first enable the LTI Constant URLs and Enable LTI Course Copy button in Codio Course then save the changes.
In Canvas, go to the Course -> Settings then click on the "Copy the Course" link.
You may change the Course name as your wish then click on "Create Course".
Then go to Course -> settings -> Apps tab, click on "View App Configurations".
Click on setting icon beside Codio then click on Edit.
Change the "codio_course_target_id" with any other arbitrary value in the custom field.
Also make sure that "codio_course_parent_id" is present inside custom field. You will get the "codio_course_parent_id" inside Codio, go to Courses -> Admin tab and find the parent_id just below the "ENABLE LTI COURSE COPY" button.
Then click on the Submit button.
In Canvas, Go to the new Course -> Assignments, click on the new created assignment. It will open the assignment in Codio and create the new course in Codio containing the content from your original Codio course.